The following are commands and functions for numbers:
INTEGERS
* Abs -- absolute value of a number
* Bin -- binomial coefficient
* BinExp, EvalBinExp -- binomial expansion
* Div, Mod -- quotient and remainder for integers
* EvalHilbertFn -- evaluate the Hilbert function
* Fact -- factorial function
* Fraction -- returns the quotient of its arguments
* GCD, LCM -- greatest common divisor, least common multiple
* GenericPoints -- random projective points
* ILogBase -- integer part of the logarithm
* Inverse -- multiplicative inverse
* Iroot -- integer part of r-th root of an integer
* IsEven, IsOdd -- test whether an integer is even or odd
* IsNumber -- checks if the argument is a number
* IsPrime -- prime integer test
* Isqrt -- computes the (truncated) square root of an integer
* IsZero -- test whether an object is zero
* Len -- the length of an object
* Max, Min -- a maximum or minimum element of a sequence or list
* Mod2Rat -- reconstructing rationals from modular integers
* NextPrime -- find the next largest prime number
* Num, Den -- numerator, denominator
* Partitions -- partitions of an integer
* Product, Sum -- the product or sum of the elements of a list
* Rand -- random integer
* Seed -- seed for 'Rand'
* Size -- the amount of memory used by an object
RATIONALS
* Abs -- absolute value of a number
* CFApprox, CFApproximants, ContFrac -- continued fractions
* DecimalStr -- convert rational number to decimal string
* FloatApprox -- approx. of rational number of the form M*10^E
* FloatStr, MantissaAndExponent -- convert rational number to a float string
* Fraction -- returns the quotient of its arguments
* ILogBase -- integer part of the logarithm
* Inverse -- multiplicative inverse
* IsNumber -- checks if the argument is a number
* IsZero -- test whether an object is zero
* Max, Min -- a maximum or minimum element of a sequence or list
* Num, Den -- numerator, denominator
* Product, Sum -- the product or sum of the elements of a list
MODULAR INTEGERS
* Fraction -- returns the quotient of its arguments
* Inverse -- multiplicative inverse
* IsNumber -- checks if the argument is a number
* IsZero -- test whether an object is zero
* Mod2Rat -- reconstructing rationals from modular integers
* Product, Sum -- the product or sum of the elements of a list
Details can be found by looking up each item by name. Online, try
'?ItemName' or 'H.Syntax("ItemName")'.
|