ApCoCoA-1:Fn.CosN

From ApCoCoAWiki
Revision as of 09:54, 4 May 2011 by S schuster (talk | contribs) (New page: <command> <title>Fn.CosN</title> <short_description>Returns the cosine of a given value with a given accuracy.</short_description> <syntax> Fn.CosN(Val:RAT,Acc:INT):RAT </syntax> <desc...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Fn.CosN

Returns the cosine of a given value with a given accuracy.

Syntax

Fn.CosN(Val:RAT,Acc:INT):RAT

Description

This function returns the cosine of X rounded to the given

accuracy Acc.

  • @param Val Value of which to compute the cosine.

  • @param Acc The desired accuracy.

  • @return The cosine of X rounded to the given accuracy Acc.

Example

R := Fn.CosN(1, 30);
Dec(R, 40);

0.540302305868139717400936607443
-------------------------------

Fn.Cos

Fn.SetAccuracy

Fn.GetAccuracy