Difference between revisions of "Extensions.Math.Sin"

From emotive
Jump to navigation Jump to search
(Created page with "Category:Math == Classification == {{ClassificationActivity | Sin | Sine of the given angle (in radians) | Term | OTX Math Extension | - | - | - | Yes}} == P...")
 
Line 3: Line 3:
 
{{ClassificationActivity | Sin | Sine of the given angle (in radians) | [[Term]] | [[Math|OTX Math Extension]] | - | - | - | Yes}}
 
{{ClassificationActivity | Sin | Sine of the given angle (in radians) | [[Term]] | [[Math|OTX Math Extension]] | - | - | - | Yes}}
  
== Pseudo-Code Syntax ==
+
== OTL Syntax ==
 
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
 
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
Float Sin(NumericTerm rad);
+
FloatTerm = Math.Sin(NumericTerm);
 
</syntaxhighlight>
 
</syntaxhighlight>
  
Line 19: Line 19:
 
|}
 
|}
  
== Examples ==
+
== OTL Examples ==
 
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
 
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;">
Float result = Sin(30);
+
Float Float1;
 +
 
 +
Float1 = Math.Sin(45);
 
</syntaxhighlight>
 
</syntaxhighlight>
  

Revision as of 08:36, 10 February 2015

Classification

Name Sin
Short Description Sine of the given angle (in radians)
Class Term
Extension OTX Math Extension
Group -
Exceptions -
Checker Rules -
Standard Compliant Yes

OTL Syntax

FloatTerm = Math.Sin(NumericTerm);

Description

The Sin term is used for the calculation of the sine of the given angle used (in radians).

Return Value

The Term returns the value, see table below.

Icons Note.png In OTX, Terms are categorized according to its return data type!
Data Type Description
Float Sine of the given angle (in radians)

Properties

Name Data Type Class Default Cardinality Description
Rad - Term - [1] The angle of which the sine is to be calculated.

OTL Examples

Float Float1;

Float1 = Math.Sin(45);

See also

Power
Log
Ln
Cos
Tan