I use the SOLVE function and I get a result that has imaginary components. My equation includes a symbolic variable, I, which has been interpreted as the imaginary number i (the square root of -1). This happens despite the SYMVAR function listing I as a symbolic variable.
For instance, create the following equation and list the symbols involved:
eqn = 'x = I^2';symvar(eqn) ans = 'I' 'x'
However, when SOLVE is used, "I" is not treated as a symbol, but instead is treated as "sqrt(-1)":
solve(eqn,'x') ans = -1
Best Answer