Powers and logarithms
Factor handbook > The language > Numbers > Mathematical functions

Prev:Arithmetic functions
Next:Trigonometric and hyperbolic functions


Squares:
sq ( x -- y )

sqrt ( x -- y )


Exponential and natural logarithm:
e^ ( x -- e^x )

cis ( arg -- z )

log ( x -- y )


Other logarithms:
log1+ ( x -- y )

log10 ( x -- y )

logn ( x n -- y )


Raising a number to a power:
^ ( x y -- x^y )

e^ ( x -- e^x )

10^ ( x -- 10^x )


Logistics functions:
sigmoid ( x -- y )


Finding the root of a number:
nth-root ( n x -- y )


Converting between rectangular and polar form:
abs ( x -- y )

absq ( x -- y )

arg ( z -- arg )

>polar ( z -- abs arg )

polar> ( abs arg -- z )