How to Simplify a system of equations and find possible substitions (symbolic toolbox?
1 次查看(过去 30 天)
显示 更早的评论
Hello,
i've got 8 symbolic expressions and i want to simplify this system of equations together. So i've there identical expressions in 2 or more equations the number of mathematical computations can be reduced.
It is a symbolic problem using the symbolic toolbox.
4 个评论
采纳的回答
Walter Roberson
2024-1-9
If you use matlabFunction and request that it be written to a file, then the default is to optimize. The optimization step involves searching for common subexpressions and assigning them to variables and reusing the variables.
The end result is a .m file that is intended for numeric calculation.
Caution: not very long ago, optimization was badly broken, so test before trusting.
3 个评论
Walter Roberson
2024-1-9
I haven't tested over the last couple of releases, but not very long ago, the optimization phase had a series of problems for a number of years. It was completely unusuable for longer expressions.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Symbolic Math Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!