Difference between revisions of "ApCoCoA-1:Fn.Cos"

From ApCoCoAWiki
m (Bot: Category moved)
m (fixed links to namespace ApCoCoA)
Line 22: Line 22:
 
</example>
 
</example>
 
</description>
 
</description>
<see>Fn.CosN</see>
+
<see>ApCoCoA-1:Fn.CosN|Fn.CosN</see>
<see>Fn.SetAccuracy</see>
+
<see>ApCoCoA-1:Fn.SetAccuracy|Fn.SetAccuracy</see>
<see>Fn.GetAccuracy</see>
+
<see>ApCoCoA-1:Fn.GetAccuracy|Fn.GetAccuracy</see>
 
<key>Fn.Cos</key>
 
<key>Fn.Cos</key>
 
<key>elemfns.Cos</key>
 
<key>elemfns.Cos</key>

Revision as of 08:13, 7 October 2020

Fn.Cos

Returns the cosine of a given value.

Syntax

Fn.Cos(X:RAT):RAT

Description

This function returns the cosine of X rounded to the current

global accuracy.

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

  • @return The cosine of X rounded to the current global accuracy.

Example

Fn.SetAccuracy(20);
R := Fn.Cos(1);
Dec(R, 30);

0.5403023058681397174
-------------------------------

Fn.CosN

Fn.SetAccuracy

Fn.GetAccuracy