simplify symbolic expression coefficients

2 次查看(过去 30 天)
this is a row vector of the coefficients found in a polynomial equation. I'm using the symbolic engine. This is just unacceptable. How can I reduce this to something with a certain number of decimals?
[ 305894193331964780504589990431253575232652692213127/374144419156711147060143317175368453031918731001856, 1096917378336187883325285944915528934588090661323/730750818665451459101842416358141509827966271488, 4580206849048297763128404471551925/162259276829213363391578010288128, 1289643680263349707/144115188075855872, 1]

回答(1 个)

madhan ravi
madhan ravi 2019-4-7
编辑:madhan ravi 2019-4-7
Use double() or vpa()
double([305894193331964780504589990431253575232652692213127/374144419156711147060143317175368453031918731001856, 1096917378336187883325285944915528934588090661323/730750818665451459101842416358141509827966271488, 4580206849048297763128404471551925/162259276829213363391578010288128, 1289643680263349707/144115188075855872, 1])

类别

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