|
Post by laboyd2 on Apr 23, 2018 16:17:05 GMT -5
Series for approximation of various functions are commonly shown in a form similar to the following:
' x^2 x^4 x^6 x^8 ' cos x = 1 - --- + --- - --- + --- ... ' 2! 4! 6! 8! It is easier to program when expressed in the following alternate form
' x^2 x^2 x^2 x^2 ' cos x = ---- * (---- * (---- * (---- -1) +1) -1) +1 ' 2! 4!/2! 6!/4! 8!/6!
I have seen many of the common series in this second form, but that was in a book many years ago.
Does this second form have a name which might help me search? I haven't been successful so far.
|
|
|
Post by Alyce Watson on Apr 23, 2018 17:34:39 GMT -5
I don't have an answer for this question, but a site called Rosetta Code includes many, many tasks and solutions in just about every language. The Liberty BASIC page is HERE If you cannot find what you need in the LB section, you may find it on the main page/list of tasks. Rosetta Code includes a large number of math tasks.
|
|
|
Post by tsh73 on Apr 24, 2018 0:25:52 GMT -5
Google says something along Horner's scheme on the (truncated) Taylor polynomial
|
|