Can numden return non-simplified results?

조회 수: 2 (최근 30일)
Nicholas paine
Nicholas paine 2019년 10월 25일
When I use numden on a symbolic expression, numden simplifies the expression first (canceling out common factors) before returning the numerator and denominator.
D= (x^2-1) / (x+1);
[n,d] = numden(D)
n = x - 1
d = 1
Is there a way to avoid this or another function that doesn't simplify expressions before returning numerators and denominators? The behavior I would like is:
D= (x^2-1) / (x+1);
[n,d] = numden(D)
n = x^2 - 1
d = x + 1
Thanks.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by