Symbolic Math Toolbox | ![]() ![]() |
Syntax
[N,D] = numden(A)
Description
[N,D] = numden(A)
converts each element of A
to a rational form where the numerator and denominator are relatively prime polynomials with integer coefficients. A
is a symbolic or a numeric matrix. N
is the symbolic matrix of numerators, and D
is the symbolic matrix of denominators.
Examples
[n,d] = numden(4/5)
returns n = 4
and d = 5
.
[n,d] = numden(x/y + y/x)
returns
The statementsn =
x^2+y^2
d =
y
*x
A = [a, 1/b] [n,d] = numden(A)return
A = [a, 1/b] n = [a, 1] d = [1, b]
![]() | null | poly | ![]() |