Numerical error for same MATLAB function but generated differently

1 view (last 30 days)
I have two matlab functions, one generated using symbolic math and another hand coded as normal matlab function. So , my question is, if both the matlab function has same equations and parameters, then would there be any difference in results due to round of errors or accumulation of any numerical errors over the course of simulation time?

Accepted Answer

Torsten on 21 Sep 2023
Edited: Torsten on 21 Sep 2023
General answer for an unspecific question:
Especially look at the paragraph
Comparisons of Numeric and Symbolic Arithmetic

More Answers (0)




Community Treasure Hunt

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

Start Hunting!