math vocabulary
Factor handbook ยป Vocabulary index


Documentation
Arithmetic

Metadata
Tags:math
Authors:Slava Pestov


Words

Builtin classes
bignum
fixnum
float


Tuple classes
ClassSuperclassSlots
complex tuplereal imaginary
negative-number-expected tuplen
non-negative-number-expected tuplen
positive-number-expected tuplen
ratio tuplenumerator denominator


Union classes
integer
number
rational
real


Generic words
WordStack effect
*( x y -- z )
+( x y -- z )
-( x y -- z )
/( x y -- z )
/f( x y -- z )
/i( x y -- z )
/mod( x y -- z w )
<( x y -- ? )
<=( x y -- ? )
>( x y -- ? )
>=( x y -- ? )
>bignum( x -- n )
>fixnum( x -- n )
>float( x -- y )
>fraction( a/b -- a b )
>integer( x -- n )
>rect( z -- x y )
abs( x -- y )
bit?( x n -- ? )
bitand( x y -- z )
bitnot( x -- y )
bitor( x y -- z )
bitxor( x y -- z )
denominator( a/b -- b )
fp-infinity?( x -- ? )
fp-nan-payload( x -- bits )
fp-nan?( x -- ? )
fp-qnan?( x -- ? )
fp-sign( x -- ? )
fp-snan?( x -- ? )
fp-special?( x -- ? )
imaginary-part( z -- y )
integer>fixnum( x -- y )
integer>fixnum-strict( x -- y )
mod( x y -- z )
neg?( x -- ? )
next-float( m -- n )
number=( x y -- ? )
numerator( a/b -- a )
prev-float( m -- n )
real-part( z -- x )
recip( x -- y )
shift( x n -- y )
simple-gcd( x y -- d )
u<( x y -- ? )
u<=( x y -- ? )
u>( x y -- ? )
u>=( x y -- ? )
unordered?( x y -- ? )


Primitives
WordStack effect
bits>double( n -- x )
bits>float( n -- x )
double>bits( x -- n )
float>bits( x -- n )


Ordinary words
WordStack effect
2/( x -- y )
2^( n -- 2^n )
<fp-nan>( payload -- nan )
?1+( x -- y )
align( m w -- n )
all-integers-from?( ... from to quot: ( ... i -- ... ? ) -- ... ? )
all-integers?( ... n quot: ( ... i -- ... ? ) -- ... ? )
assert-negative( n -- n )
assert-non-negative( n -- n )
assert-positive( n -- n )
bit-length( x -- n )
each-integer( ... n quot: ( ... i -- ... ) -- ... )
each-integer-from( ... from to quot: ( ... i -- ... ) -- ... )
even?( n -- ? )
find-integer( ... n quot: ( ... i -- ... ? ) -- ... i/f )
find-integer-from( ... i n quot: ( ... i -- ... ? ) -- ... i/f )
find-last-integer( ... n quot: ( ... i -- ... ? ) -- ... i/f )
fp-bitwise=( x y -- ? )
gcd( x y -- a d )
if-zero( ..a n quot1: ( ..a -- ..b ) quot2: ( ..a n -- ..b ) -- ..b )
lcm( a b -- c )
log2( x -- n )
neg( x -- -x )
negative-number-expected( n -- * )
next-power-of-2( m -- n )
non-negative-number-expected( n -- * )
odd?( n -- ? )
positive-number-expected( n -- * )
power-of-2?( n -- ? )
rect>( x y -- z )
recursive-hashcode( n obj quot -- code )
rem( x y -- z )
sgn( x -- n )
sq( x -- y )
times( ... n quot: ( ... -- ... ) -- ... )
unless-zero( ... n quot: ( ... n -- ... ) -- ... )
until-zero( ... n quot: ( ... x -- ... y ) -- ... )
when-zero( ... n quot: ( ... -- ... x ) -- ... x )
zero?( x -- ? )


Class predicate words
WordStack effect
bignum?( object -- ? )
complex?( object -- ? )
fixnum?( object -- ? )
float?( object -- ? )
integer?( object -- ? )
negative-number-expected?( object -- ? )
non-negative-number-expected?( object -- ? )
number?( object -- ? )
positive-number-expected?( object -- ? )
ratio?( object -- ? )
rational?( object -- ? )
real?( object -- ? )


Files


Metadata files


Children from resource:core
VocabularySummary
math.floatsFloating point number implementation
math.integersInteger implementation
math.orderGeneric protocol for totally-ordered objects
math.parserConverting numbers to and from strings
math.ratiosRational number implementation


Children from resource:basis
VocabularySummary
math.bitsVirtual sequence for bits of an integer
math.bitwiseBitwise arithmetic utilities
math.combinatoricsPermutations and combinations
math.complexComplex number implementation
math.constantsMathematical constants
math.floating-point
math.floatsFloating point number implementation
math.functionsElementary complex-valued functions
math.hashcodes
math.intervalsInterval arithmetic
math.libmLow-level binding to math functions in the C standard library
math.matricesMatrix arithmetic
math.partial-dispatchPartially-dispatched math operations, used by the compiler
math.polynomialsPolynomial arithmetic
math.primesPrime numbers test and generation
math.quaternionsQuaternion arithmetic and Euler angles
math.rectangles
math.statisticsMean, median, standard deviation, and other statistical routines
math.vectorsVector arithmetic


Children from resource:extra
VocabularySummary
math.affine-transformsAffine transforms for two-dimensional vectors
math.algebraVarious algebra-related words
math.analysisVarious special functions from complex analysis
math.approxApproximating rational numbers.
math.binpackBin-packing algorithms.
math.blas
math.cardinalityCardinality estimation
math.combinatoricsPermutations and combinations
math.combinators
math.compareComparison functions.
math.continued-fractionsContinued fractions
math.derivatives
math.distances
math.dual
math.extras
math.factorials
math.financeMoving averages and other calculations useful for finance.
math.function-tools
math.matricesMatrix arithmetic
math.numerical-integrationNumerical integration using Simpson's method
math.points
math.primesPrime numbers test and generation
math.quadraticQuadratic equation solver
math.runge-kuttarunge-kutta 4-stage implementation for n dimensions
math.secant-method
math.similarity
math.splinesCommon parametric curves
math.statisticsMean, median, standard deviation, and other statistical routines
math.text
math.transforms
math.unicode
math.vectorsVector arithmetic