numer
return the numerator of an expression
denom
return the denominator of an expression
Calling Sequence
Parameters
Description
Examples
numer(x)
denom(x)
x
-
algebraic expression
The numer(x) function returns the following results for the indicated numeric formats of x.
Format of x
Result
rational
numerator of x
integer
floating-point number
complex rational
x multiplied by the common denominator
of the real and imaginary parts of x
undefined
other
unevaluated
The denom(x) function returns the following results for the indicated numeric formats of x.
denominator of x
1
1.0
common denominator of the real and
imaginary parts of x
If x is not numeric, the numer and denom functions are typically called after first using the normal function. The normal function is used to put an expression in the form numerator/denominator where both the numerator and denominator are polynomials. Once x has been normalized, the numer(x) function simply chooses the numerator of x. The case is similar for denom(x). Note: If x is in normal form, the numerator and denominator have integer coefficients.
If x is not in normal form, Maple converts it into a normal form (not necessarily the same form that would be returned by the normal function) and a common denominator is found so that x can be expressed in the form numerator/denominator.
If x is not in normal form, Maple converts it into a normal form.
See Also
float
normal
numeric_types
Download Help Document