This documentation is archived and is not being maintained.
sin Function
Retrieves the sine of a real number.
|
Parameter
|
Description
|
|
_arg
|
The number for which to calculate the sine.
|
The sine of the specified real number.
The value of the _arg parameter must be in radians.
static void sinExample(Args _arg)
{
real angleDegrees = 15.0;
real angleRadians;
real pi = 3.14;
real r;
;
angleRadians = pi * angleDegrees / 180;
r = sin(angleRadians);
print "sin of a "
+ num2Str(angleDegrees, 2, 2, 1, 1)
+ " degree angle is "
+ num2Str(r, 2, 10, 1, 1);
pause;
}