How to avoid automatic simplification when integrating

1 回表示 (過去 30 日間)
David Armendáriz
David Armendáriz 2018 年 3 月 15 日
編集済み: David Armendáriz 2018 年 3 月 15 日
Suppose I have the following symbolic integral
g=-(t - x)^2*((p - x1)^2 - (p - x2)^2)
int(g,t)
-((t - x)^3*(x1 - x2)*(x1 - 2*p + x2))/3
I would like the output to be
-(t-x)^3*((p - x1)^2 - (p - x2)^2)/3
and then I would like to have
-(t-x)^3*(p - x1)^2/3 - (t-x)^3*(p - x2)^2/3
That is, I don't want polynomials to be expanded never. How can I do this?

回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by