How to find real and complex roots for a nonlinear equation
6 views (last 30 days)
I have to solve this eqution numerically:
the only variable is H and it tipically gives two complex roots and one real root, I've read that fzero is not suitable in this case, could anyone give mi any tips please?
Viranch Patel on 22 Sep 2021
For simplicity I have taken a simple function which has complex roots.
eq=H^2 + 1;
You can specify your equation in H like this and this should give you the roots correctly.