Sin Function
Calculates and returns the sine of an angle.
Key Words:
 
Sin
Description:
 
A function that takes an argument of a numeric data type that represents an angle and returns the argument's trigonometric Sine value.
Operation:
 
When a Sin function is encountered during the program's execution, it takes the {expression} element which is expressed in an Binary Radians, calculates and then returns the trigonometric ratio of two sides of a right triangle. The calculated ratio is the length of the side opposite the angle divided by the length of the hypotenuse.
Availability:
 
The Sin function is available starting in firmware version A.1.0 and in the compiler version 3.04.
Remarks:
 
Sine is defined as the ration created by dividing the length of the side opposite the angle (Y) by the length of the hypotenuse (H) in a right triangle.

The Sin function returns a numeric data type.

The result of the Sin function is the value represented by the number which divided by 255 forms the ratio equivilent to the angle being represented. In other words, a result of 45 from a Sin call represents the angle 45/255. This is how the OOPic gets around the integer math limitation.

The oConverter Object also provides this function.

Syntax:
 
The following shows the format of the Sin Function syntax.
 
Sin({expression})
 
The following table lists the elements of the Sin Function syntax.
 
ElementDescription
{expression}Any valid numeric expression that expresses an angle.
Example:
 
 
A = Sin(90)
See Also:
 
Cos function, oConverter Object