From: czlowiek kuba on
Is it possible to add constraints like x >= 0 to fsolve function? I didn't find any information on this matter in help.
From: John D'Errico on
"czlowiek kuba" <czlowiekkuba(a)gmail.com> wrote in message <hqv9jd$s59$1(a)fred.mathworks.com>...
> Is it possible to add constraints like x >= 0 to fsolve function? I didn't find any information on this matter in help.

No. It is not.

However, you can use lsqnonlin with bound constraints.
If you can minimize the residuals to zero, then fsolve is
satisfied.

John
From: Torsten Hennig on
> Is it possible to add constraints like x >= 0 to
> fsolve function? I didn't find any information on
> this matter in help.

You can substitute x by a new variable y^2.
If fsolve gives a solution for this system, x:=y^2
is a solution for your original equation, thus
nonnegative.

Best wishes
Torsten.