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.
numer23
2
denom23
3
denom45
numer12.1x
0.4761904762
denom12.1x+6.5y
2.1x+6.5y
numer25+I6
12+5I
denom25+I6
30
If x is not in normal form, Maple converts it into a normal form.
numerx2−x−1x+1
numer1+xx12y
x+1
denom1+xx12y
xy
numer2x+y
yx+2
numerx+1x+1x
xx2+2
denomx+1x+1x
x2+1
a≔1x3−1−x+x2x3
a≔1x3−x2−x+1x3
denoma
x3
denomnormala
x2
simplifydenomaa
−xx−1
See Also
float
normal
numeric_types
Download Help Document