Skip to content

Latest commit

 

History

History
233 lines (162 loc) · 3.64 KB

trig.md

File metadata and controls

233 lines (162 loc) · 3.64 KB

trig

Trigonometric functions

Index

Operation Description
acos Inverse cosine
acosh Inverse hyperbolic cosine
asin Inverse sine
asinh Inverse hyperbolic sine
atan Inverse tangent
atan2 Inverse tangent
atanh Inverse hyperbolic tangent
cos Cosine
cosh Hyperbolic cosine
sin Sine
sinh Hyperbolic sine
tan Tangent
tanh Hyperbolic tangent

Operations

acos

Inverse cosine of x in radians.

Stack effects:

( x:Float -- Float )
( x:Complex -- Complex )

Example:

Input Stack
0.5 acos 5 round 1.0472

acosh

Inverse hyperbolic cosine of x in radians.

Stack effects:

( x:Float -- Float )
( x:Complex -- Complex )

Example:

Input Stack
2 acosh 5 round 1.31696

asin

Inverse sine of x in radians.

Stack effects:

( x:Float -- Float )
( x:Complex -- Complex )

Example:

Input Stack
0.5 asin 5 round 0.5236

asinh

Inverse hyperbolic sine of x in radians.

Stack effects:

( x:Float -- Float )
( x:Complex -- Complex )

Example:

Input Stack
2 asinh 5 round 1.44364

atan

Inverse tangent of x in radians.

Stack effects:

( x:Float -- Float )
( x:Complex -- Complex )

Example:

Input Stack
0.5 atan 5 round 0.46365

atan2

Inverse tangent of x/y in radians.

Stack effects:

( x:Float y:Float -- Float )

Example:

Input Stack
1 2 atan2 5 round 0.46365

atanh

Inverse hyperbolic tangent of x in radians.

Stack effects:

( x:Float -- Float )
( x:Complex -- Complex )

Example:

Input Stack
0.5 atanh 5 round 0.54931

cos

Cosine of x in radians.

Stack effects:

( x:Float -- Float )
( x:Complex -- Complex )

Example:

Input Stack
2 cos 5 round -0.41615

cosh

Hyperbolic cosine of x in radians.

Stack effects:

( x:Float -- Float )
( x:Complex -- Complex )

Example:

Input Stack
2 cosh 5 round 3.7622

sin

Sine of x in radians.

Stack effects:

( x:Float -- Float )
( x:Complex -- Complex )

Example:

Input Stack
2 sin 5 round 0.9093

sinh

Hyperbolic sine of x in radians.

Stack effects:

( x:Float -- Float )
( x:Complex -- Complex )

Example:

Input Stack
2 sinh 5 round 3.62686

tan

Tangent of x in radians.

Stack effects:

( x:Float -- Float )
( x:Complex -- Complex )

Example:

Input Stack
2 tan 5 round -2.18504

tanh

Hyperbolic tangent of x in radians.

Stack effects:

( x:Float -- Float )
( x:Complex -- Complex )

Example:

Input Stack
2 tanh 5 round 0.96403