up previous next
2.3.2 Commands and Functions for RAT
abs absolute value of a number
AsINT convert into an INT
AsRAT convert into a RAT
ceil round rational up to integer
CFApprox continued fraction approximation
CFApproximants continued fraction approximants
ContFrac continued fraction quotients
DecimalStr convert rational number to decimal string
den denominator
FloatApprox approx. of rational number of the form M*2^E
FloatStr convert rational number to a decimal string
floor round rational down to integer
FloorLog2, FloorLog10, FloorLogBase integer part of the logarithm
IsOne test whether an object is one
IsZero test whether an object is zero
MantissaAndExponent10 convert rational number to a float
MantissaAndExponent2 convert rational number to a binary float
max a maximum element of a sequence or list
min a minimum element of a sequence or list
NewMatFilled matrix filled with value
num numerator
product the product of the elements of a list
RealRootRefine refine a real root of a univariate polynomial
RealRoots computes the real roots of a univariate polynomial
RealRootsApprox computes approximations to the real roots of a univariate polynomial
RingElem convert an expression into a RINGELEM
round round to integer
ScientificStr convert integer/rational to a floating-point string
sign the sign of a number
SimplestBinaryRatBetween find simplest binary rational in a closed interval
SimplestRatBetween find simplest rational in a closed interval
StableBBasis5 Stable Border Basis of ideal of points
sum the sum of the elements of a list
TimeFrom time elapsed since a given moment