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

From ApCoCoAWiki
(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...)
 
Line 6: Line 6:
 
</syntax>
 
</syntax>
 
<description>
 
<description>
This function returns the cosine of <tt>X</tt> rounded to the given
+
This function returns the cosine of <tt>Val</tt> rounded to the given
 
accuracy <tt>Acc</tt>.
 
accuracy <tt>Acc</tt>.
  
Line 12: Line 12:
 
<item>@param <em>Val</em> Value of which to compute the cosine.</item>
 
<item>@param <em>Val</em> Value of which to compute the cosine.</item>
 
<item>@param <em>Acc</em> The desired accuracy.</item>
 
<item>@param <em>Acc</em> The desired accuracy.</item>
<item>@return The cosine of <tt>X</tt> rounded to the given accuracy <tt>Acc</tt>.</item></itemize>
+
<item>@return The cosine of <tt>Val</tt> rounded to the given accuracy <tt>Acc</tt>.</item></itemize>
 
<example>
 
<example>
 
R := Fn.CosN(1, 30);
 
R := Fn.CosN(1, 30);

Revision as of 11:58, 4 May 2011

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 Val rounded to the given

accuracy Acc.

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

  • @param Acc The desired accuracy.

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

Example

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

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

Fn.Cos

Fn.SetAccuracy

Fn.GetAccuracy