Powers and logarithms - Factor Documentation (original) (raw)
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:
cis ( arg -- z )
log ( x -- y )
log10 ( x -- y )
logn ( x n -- y )
e^ ( x -- e^x )
10^ ( x -- 10^x )
Converting between rectangular and polar form:
absq ( x -- y )
arg ( z -- arg )
>polar ( z -- abs arg )
polar> ( abs arg -- z )