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

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

Revision as of 14:22, 4 May 2011

Fn.Sin

Returns the sine of a given value.

Syntax

Fn.Sin(X:RAT):RAT

Description

This function returns the sine of X rounded to the current

global accuracy.

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

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

Example

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

0.84147098480789650665
-------------------------------

Fn.SinN

Fn.SetAccuracy

Fn.GetAccuracy