4.9.3 Trigonometric functions

sine

sin( x ) // = sine of x - x is in degrees

Example:
sin( 90 ) // returns 1
sin( 45 ) // returns 0.70710677

more about sin( x )


cosine

cos( x ) // = cosine of x - x is in degrees

Example:
cos( 90 ) // returns 0
cos( 45 ) // returns 0.70710677

more about cos( x )


tangent

tan( x ) // = tangent of x - x is in degrees

Example:
tan( 0 ) // returns 0
tan( 45 ) // returns 1

more about tan( x )


arcsine

asin( x ) // = arc sine of x; an angle whose sine is x; x between -1 and 1

Example:
asin( 1 ) // returns 90
asin( 0.70710677 ) // returns 45

more about asin( x )


arccosine

acos( x ) // = arc cosine of x; an angle whose cosine is x; x between -1 and 1

Example:
acos( 0 ) // returns 90
acos( 0.70710677 ) // returns 45

more about acos( x )


arctangent

atan( x ) // = arc tangent of x; an angle whose tangent is x; x between -infinity and infinity

Example:
atan( 0.5 ) // returns 26.56505203
atan( 1 ) // returns 45

more about atan( x )


radians to degree

deg( x ) // = exchanging 0... 2pi with 0... 360°

Example:
deg( 2 * pi ) // returns 360
deg( 4 * pi ) // returns 720

more about deg( x )


degree to radians

rad( x ) // = exchanging 0... 360° with 0... 2pi

Example:
rad( 360 ) // returns 2pi
rad( 720 ) // returns 4pi

more about rad( x )

Xpressionist 3.5