factor an expression into two expressions

1 次查看(过去 30 天)
I have a function a=3/(1+e*cos(f)) where both e and f are symbolic variables. I would like to write this function as the sum of two expressions B and G where a=B+e*G. For this example problem, I know that B=3 and G=(-3*cos(f))/(1+e*cos(f)). What commands in Matlab would allow me to write this expression in this form? Thank you.

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Symbolic Math Toolbox 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by