Does symbolics give wrong results?
1 view (last 30 days)
I was doing matrix operations using symbolics, I found out to my surprise, that the results where wrong and unrepeatable. Same operations gave different results. For example, I calculated the expression K- K.' to check if the matrix was symmetric. I use this expression on command line twice and I get different results each time.
Walter Roberson on 11 Dec 2015
Symbolic routines are not required to give identical output each time they are called, even if nothing is redefined and no new assume() are added and so on. However, it is expected that the results will be mathematically equivalent (except possibly at some singularities.)
You should try using simplify() on the two different versions