I'm trying to solve a system of algebraic equations using 'solve' [float]. I'd prefer to use 'solve' over 'fsolve', as 'solve' solves my system in about 0.05s, whereas fsolve takes about 5 seconds. I need to solve the system repeatedly at a different points, so time is important. I don't know why there is such a large difference in time ...
I have a few piecewise functions of order 3 to 5. It solves fine with the other (piecewise) equations, but adding one piecewise function which gives me an error while trying to solve:
Error, (in RootOf) _Z occurs but is not the dependent variable.
I think this is due to solve finding multiple solutions. Is there a way to limit solve to only real solutions?
Thanks in advance!