denom - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


numer

return the numerator of an expression

denom

return the denominator of an expression

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

numer(x)

denom(x)

Parameters

x

-

algebraic expression

Description

• 

The numer(x) function returns the following results for the indicated numeric formats of x.

Format of x

Result

 

 

rational

numerator of x

integer

x

floating-point number

x

complex rational

x multiplied by the common denominator

 

of the real and imaginary parts of x

undefined

x

other

unevaluated

• 

The denom(x) function returns the following results for the indicated numeric formats of x.

Format of x

Result

 

 

rational

denominator of x

integer

1

floating-point number

1.0

complex rational

common denominator of the real and

 

imaginary parts of x

undefined

1

other

unevaluated

• 

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.

Examples

numer23

2

(1)

denom23

3

(2)

denom45

1

(3)

numer12.1x

0.4761904762

(4)

denom12.1x+6.5y

2.1x+6.5y

(5)

numer25+I6

12+5I

(6)

denom25+I6

30

(7)

If x is not in normal form, Maple converts it into a normal form.

numerx2x1x+1

1

(8)

numer1+xx12y

x+1

(9)

denom1+xx12y

xy

(10)

numer2x+y

yx+2

(11)

numerx+1x+1x

xx2+2

(12)

denomx+1x+1x

x2+1

(13)

a1x31x+x2x3

a1x3x2x+1x3

(14)

denoma

x3

(15)

denomnormala

x2

(16)

simplifydenomaa

xx1

(17)

See Also

float

normal

numeric_types