Core Function Sin

From Sputnik Wiki
Jump to: navigation, search
Sin( <expression> )

Contents

Description

Returns the sine of the specified angle.

Parameters

expression

Value in radians.

Return Value

Returns the trigonometric sine of number.

Remarks

1° = pi / 180 radians.

Example

$Param = 30.0;
$Result = Sin($Param* @PI / 180.0);
print("The sine of $Param degrees is $Result.");
 
$x = Sin(@PI / 4.0);
println($x); // returns 0.707106781186547 which you should recognize as sqrt(2)/2
 
$degToRad = @PI / 180.0;
$y = Sin(90.0 * $degToRad);
println($y); // sine of 90°
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox