I am working on an optimization problem that involves calling the Symbolic Math toolbox. The sym function makes optimization very slow, so I tried vpa and it made it a lot faster. I am wondering where the speed difference comes from? Is it the fact that sym converts everything to rational form while vpa doesn't? If so, should sym(x,'d') do the same thing as vpa(x) because now they're in the same form?
Thanks!
Best Answer