ApCoCoA-1:Fn.SinN: Difference between revisions
From ApCoCoAWiki
S schuster (talk | contribs) New page: <command> <title>Fn.SinN</title> <short_description>Returns the sine of a given value with a given accuracy.</short_description> <syntax> Fn.SinN(Val:RAT,Acc:INT):RAT </syntax> <descri... |
S schuster (talk | contribs) No edit summary |
||
Line 6: | Line 6: | ||
</syntax> | </syntax> | ||
<description> | <description> | ||
This function returns the sine of <tt> | This function returns the sine 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 sine.</item> | <item>@param <em>Val</em> Value of which to compute the sine.</item> | ||
<item>@param <em>Acc</em> The desired accuracy.</item> | <item>@param <em>Acc</em> The desired accuracy.</item> | ||
<item>@return The sine of <tt> | <item>@return The sine of <tt>Val</tt> rounded to the given accuracy <tt>Acc</tt>.</item></itemize> | ||
<example> | <example> | ||
R := Fn.SinN(1, 30); | R := Fn.SinN(1, 30); |
Revision as of 11:58, 4 May 2011
Fn.SinN
Returns the sine of a given value with a given accuracy.
Syntax
Fn.SinN(Val:RAT,Acc:INT):RAT
Description
This function returns the sine of Val rounded to the given
accuracy Acc.
@param Val Value of which to compute the sine.
@param Acc The desired accuracy.
@return The sine of Val rounded to the given accuracy Acc.
Example
R := Fn.SinN(1, 30); Dec(R, 40); 0.84147098480789650665250232163 -------------------------------