# cosSeries ( angleInRadians ; series ; k )

cosSeries returns the cosine of an angle as precise as you want, without the limitations of the built-in cosine function.

Average rating: 4.2 (32 votes) Log in to vote

Jeremy Bante OshVay Systems, Inc. http://www.oshvay.com/ |

cosSeries( 1; 0; 0);

250

)

Function definition: (Copy & paste into FileMaker's Edit Custom Function window)

With FileMaker 7 came the capacity for storing numbers with 400 decimal digits of precision. However, FileMaker's built-in trigonometric functions still only evaluate to 16 places; cosSeries returns the cosine of an angle [in radians] as precise as you want (with use of the SetPrecision function) by recursively adding the terms of a power series. The last two arguments to the cosSeries function are for the function's own use in recursive calls, and each should always be 0 when called by the developer.

## Comments

Note: these functions are not guaranteed or supported by BrianDunning.com. Please contact the individual developer with any questions or problems.