Talk:Thiele's interpolation formula: Difference between revisions

m
added a section header to the first question so as to properly place the Table of Contents ( __TOC__).
m (added a section header to the first question so as to properly place the Table of Contents ( __TOC__).)
 
(12 intermediate revisions by 7 users not shown)
Line 1:
== How many entries should the trig table have? ==
How many entries should the trig table have? --[[User:Short Circuit|Michael Mol]] 14:46, 2 October 2010 (UTC)
: I make it 16, with ''x'' varying by steps of 0.05 from 0 to 1.55. (Now, if only I could make my version of this ''work'', but that algol68 code is deeply gnarly; does it really have different base indices in different dimensions?!?) –[[User:Dkf|Donal Fellows]] 16:01, 2 October 2010 (UTC)
Line 8 ⟶ 9:
: Understood, but since the task is about interpolation, I figured that generating the initial reference table might be a spurious requirement. --[[User:Short Circuit|Michael Mol]] 23:43, 2 October 2010 (UTC)
I confess that I was trying to think of something "interesting" (yet simple) to interpolate, and recalled using interpolation to calculate inverse trig functions from high school log/trig tables[http://www.eton.co.nz/shop/Mathematics+Text+And+Homework+Books/Age+17+Alternative+Textbooks/Eton+Statistical+And+Math+Tables+%28Fourth+Edition%29.html]. Hence this unit test. What would be nice would be some "historic" interpolation, e.g. [[wp:Discovery of Neptune#Discovery Observation: September 24th 1846|Discovery of Neptune]], that would be another task in itself. The three π calculations from a generic trig table is practical. [[User:NevilleDNZ|NevilleDNZ]] 00:18, 3 October 2010 (UTC)
 
=== re:base indices in different dimensions ===
 
Yes. Here is a quote from the 1968 Congress: [http://www.cs.ru.nl/~kees/home/papers/psi96.pdf C.H.A. Koster (1993). "The Making of Algol 68" (PDF)].
Line 33 ⟶ 35:
==Better example code?==
I find the Algol hard to follow, and am having difficulty finding the algorithm in another language on the 'net. Does anyone have an example of in aonther language/pseudocode? It would be good if we could get better description of the task than the wikipedia entry I. --[[User:Paddy3118|Paddy3118]] 04:24, 3 October 2010 (UTC)
 
I've just tried to do a little more and the description given by the formula isn't long enough to clearly show the form of the continued fraction. I think the ellipsis needs further elaboration. --[[User:Paddy3118|Paddy3118]] 05:29, 3 October 2010 (UTC)
 
== Tcl example wrong ==
 
I know that there's something distinctly wrong with the Tcl version of the code as the output values are wrong, but I just cannot see it. Too much looking at code, so I've dumped it in here for now as I'm pretty sure that the ''approach'' is right. It's just the details which I think are off. If anyone spots the issue, please let me know! –[[User:Dkf|Donal Fellows]] 07:15, 3 October 2010 (UTC)
 
:Damn! And there I was waiting on your example to help work out how to create the Python one. :-)<br>--[[User:Paddy3118|Paddy3118]] 11:21, 3 October 2010 (UTC)
::I just added a C specimen... enjoy... [[User:NevilleDNZ|NevilleDNZ]] 12:00, 3 October 2010 (UTC)
 
: Corrected it. The D version is much easier to work with; it doesn't play indexing games so it's easy to translate into code that always uses zero-based indexing. –[[User:Dkf|Donal Fellows]] 14:48, 3 October 2010 (UTC)
 
== Suggest a related task ==
 
This task would probably be much easier to solve without resorting to translation if there were a task explicitly demonstrating finite sequences. [[wp:reciprocal difference]] would be helpful. I'd suggest using the same f(x) as used here. (sin, tan, cos) --[[User:Short Circuit|Michael Mol]] 12:45, 3 October 2010 (UTC)
 
== Perl 6 Version is flawed ==
 
It works, but isn't 100% faithful to the formula. (See the comment about "form" vs. the real form of the continued fraction.) [[User:Smosher|Smosher]] 19:51, 6 October 2010 (UTC)
:Does that explain why the cos result is way off? --[[User:Ledrug|Ledrug]] 23:12, 27 July 2011 (UTC)
 
==Some formulae now invisible on standard OS X browsers==
May need tidying up to achieve formula visibility on the OS X platform. Problems introduced at 18:05, 31 July 2016, which made several formula elements invisible on the majority of browsers (those which display the server side graphic for formulae, rather than locally processing MathML where requisite fonts are available) may include recent introduction of redundant white space flanking of LateX expressions inside &lt;math&gt; tags [[User:Hout|Hout]] ([[User talk:Hout|talk]]) 13:33, 16 September 2016 (UTC)
 
: Now repaired [[User:Hout|Hout]] ([[User talk:Hout|talk]]) 19:22, 28 September 2016 (UTC)