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.3169578969248166 }

C{ 0.0 1.3169578969248166 }

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 )

This documentation was generated offline from a
`load-all`

image. If you want, you can also
browse the documentation from within the UI developer tools. See
the Factor website
for more information.

Factor 0.100 x86.64 (2268, heads/master-b642bd1815, May 29 2024 11:57:55)