math.functions vocabulary - Factor Documentation (original) (raw)

math.functions vocabulary
Factor handbook » Vocabulary index

Documentation
Mathematical functions

Metadata

Parents: math
Tags: math
Authors: Slava Pestov

Words

Tuple classes

Class Superclass Slots
non-trivial-divisor tuple n

Generic words

Word Stack effect
absq ( x -- y )
atan ( x -- y )
copysign ( x y -- x' )
cos ( x -- y )
cosh ( x -- y )
e^ ( x -- e^x )
e^-1 ( x -- e^x-1 )
frexp ( x -- y exp )
ldexp ( x exp -- y )
lgamma ( x -- y )
log ( x -- y )
log1+ ( x -- y )
log10 ( x -- y )
round ( x -- y )
round-to-even ( x -- y )
round-to-odd ( x -- y )
signum ( x -- y )
sin ( x -- y )
sinh ( x -- y )
sqrt ( x -- y )
tan ( x -- y )
tanh ( x -- y )
truncate ( x -- y )

Ordinary words

Word Stack effect
(float-round) ( x round-quot -- y )
(ratio-round) ( x round-quot -- y )
(round-tiebreak?) ( quotient rem denom tiebreak-quot -- q ? )
(round-to-even?) ( quotient rem denom -- quotient ? )
(round-to-odd?) ( quotient rem denom -- quotient ? )
-i* ( x -- y )
10^ ( x -- 10^x )
>=1? ( x -- ? )
>float-rect ( z -- x y )
>polar ( z -- abs arg )
[-1,1]? ( x -- ? )
^ ( x y -- x^y )
^mod ( x y n -- z )
acos ( x -- y )
acosec ( x -- y )
acosech ( x -- y )
acosh ( x -- y )
acot ( x -- y )
acoth ( x -- y )
arg ( z -- arg )
asec ( x -- y )
asech ( x -- y )
asin ( x -- y )
asinh ( x -- y )
atanh ( x -- y )
ceiling ( x -- y )
cis ( arg -- z )
conjugate ( z -- z* )
cosec ( x -- y )
cosech ( x -- y )
cot ( x -- y )
coth ( x -- y )
deg>rad ( x -- y )
divisor? ( m n -- ? )
factor-2s ( n -- r s )
floor ( x -- y )
floor-to ( x step -- y )
fma ( x y z -- result )
i* ( x -- y )
integer-log10 ( x -- n )
integer-log2 ( x -- n )
integer-sqrt ( x -- n )
lerp ( a b t -- a_t )
logit ( x -- y )
logn ( x n -- y )
mod-inv ( x n -- y )
non-trivial-divisor ( n -- * )
nth-root ( n x -- y )
polar> ( abs arg -- z )
rad>deg ( x -- y )
roots ( x t -- seq )
round-to-decimal ( x n -- y )
round-to-step ( x step -- y )
sec ( x -- y )
sech ( x -- y )
sigmoid ( x -- y )
~ ( x y epsilon -- ? )
~abs ( x y epsilon -- ? )
~rel ( x y epsilon -- ? )

Class predicate words

Word Stack effect
non-trivial-divisor? ( object -- ? )

Files

resource:basis/math/functions/functions.factor
resource:basis/math/functions/functions-docs.factor
resource:basis/math/functions/functions-tests.factor

Metadata files

resource:basis/math/functions/authors.txt
resource:basis/math/functions/summary.txt
resource:basis/math/functions/tags.txt