Eig(A) returns long fractional answer instead of a single number
6 views (last 30 days)
Steven Lord on 19 Jul 2020
Edited: Steven Lord on 19 Jul 2020
If the symbolic expression doesn't contain a symbolic variable and you're okay with approximating it in double precision, call double on it.
If it does contain a symbolic variable or your need a numeric approximation to higher than double precision, use the vpa function.
If you don't need to define A as a symbolic expression, define it as a double array and call eig on that numeric array.