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

From ApCoCoAWiki
(New page: <command> <title>Fn.Cos</title> <short_description>Returns the cosine of a given value.</short_description> <syntax> Fn.Cos(X:RAT):RAT </syntax> <description> This function returns the...)
 
Line 26: Line 26:
 
<see>  Fn.GetAccuracy</see>
 
<see>  Fn.GetAccuracy</see>
 
<key>Fn.Cos</key>
 
<key>Fn.Cos</key>
<key>apcocoa/elemfns.Cos</key>
+
<key>elemfns.Cos</key>
 
<key>Cos</key>
 
<key>Cos</key>
 
<wiki-category>Package_elemfns</wiki-category>
 
<wiki-category>Package_elemfns</wiki-category>
 
</command>
 
</command>

Revision as of 13:48, 4 May 2011

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