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.
numer⁡23
2
denom⁡23
3
denom⁡45
numer⁡12.1⁢x
0.4761904762
denom⁡12.1⁢x+6.5⁢y
2.1⁢x+6.5⁢y
numer⁡25+I6
12+5⁢I
denom⁡25+I6
30
If x is not in normal form, Maple converts it into a normal form.
numer⁡x2−x−1⁢x+1
numer⁡1+xx12⁢y
x+1
denom⁡1+xx12⁢y
x⁢y
numer⁡2x+y
y⁢x+2
numer⁡x+1x+1x
x⁢x2+2
denom⁡x+1x+1x
x2+1
a≔1x3−1−x+x2x3
a≔1x3−x2−x+1x3
denom⁡a
x3
denom⁡normal⁡a
x2
simplify⁡denom⁡a⁢a
−x⁢x−1
See Also
float
normal
numeric_types
Download Help Document