Equinox Online Help - Language Reference - A to Z

Home

Sin

Applies to
SyntaxSin(NumberExpression)
Action[Function] Returns the sine of an angle.
ScopeUsable anywhere.
Notes

This function returns the sine of NumberExpression. Note that NumberExpression is an angle and Equinox requires that you should express it in radians rather than degrees (360º = 2p radians).

CategoryMaths
See Also Abs, Acos, Asin, Atan, Cos, Deg, Int, Log, Max, Min, MinMax, Rad, Rnd, RndStart, Round, Sign, Sqrt, Tan
Example

This example calculates the length of the side opposite the angle A in a right-angled triangle.

number A, RadA, opposite, hypotenuse

...

RadA = (A * pi) / 180

opposite = hypotenuse * Sin(RadA)