[SciPy-User] fsolve with restriction on variable
Mon Aug 3 12:00:32 CDT 2009
you can use one of the constrained solvers here:
On Mon, Aug 3, 2009 at 12:49 PM, Ashley DaSilva<firstname.lastname@example.org> wrote:
> I am using fsolve to solve a function, f(v), v=[x,y,z] is a list of three
> variables. However, I have a factor in f which contains (1-x**2)**(7./2).
> So, when I do the following,
> the code eventually tries x= -1.57, which clearly produces an error in my
> function due to the power 7./2.
> I know that the solution for x should be between 0 and 1, is there a way to
> put this restriction on x while using fsolve?
> SciPy-User mailing list
More information about the SciPy-User