The words in the math.libm vocabulary call C standard library math functions. They are used to implement words in the math.functions vocabulary.

Trigonometric functions:

Hyperbolic functions:

Exponentials and logarithms:

Powers:

Warning

These functions are unsafe. The compiler special-cases them to operate on floats only. They can be called directly, however there is little reason to do so, since they only implement real-valued functions, and in some cases place restrictions on the domain:

These functions are unsafe. The compiler special-cases them to operate on floats only. They can be called directly, however there is little reason to do so, since they only implement real-valued functions, and in some cases place restrictions on the domain:

USE: math.functions
2.0 acos .

C{ 0.0 1.316957896924817 }

C{ 0.0 1.316957896924817 }

USE: math.libm
2.0 facos .

0/0.

0/0.

Trigonometric functions:

fcos ( x -- double )

fsin ( x -- double )

facos ( x -- double )

fasin ( x -- double )

fatan ( x -- double )

fatan2 ( x y -- double )

Hyperbolic functions:

fcosh ( x -- double )

fsinh ( x -- double )

Exponentials and logarithms:

fexp ( x -- double )

flog ( x -- double )

flog10 ( x -- double )

Powers:

fpow ( x y -- double )

fsqrt ( x -- double )