[SciPy-User] Return variable value by function value

josef.pktd@gmai... josef.pktd@gmai...
Sat Aug 27 09:35:44 CDT 2011


On Fri, Aug 26, 2011 at 1:25 PM, Kliment <otrov@hush.ai> wrote:
> Hello,
>
> this will be very simple to any of you I guess, but I don't know
> well numpy.
>
> I declare "x = arange(1,100)" and "y = sqrt(1 - x**2/10E+4)"
> How can I return x value when y = 0.95 for example?
>
> I hope I don't have to transform y equation by x as I know that and
> expect some more strait approach

numerically: scipy.optimize rootfinding, fsolve, brentq, ... see docs

Josef

>
>
> Thanks for your time
>
> _______________________________________________
> SciPy-User mailing list
> SciPy-User@scipy.org
> http://mail.scipy.org/mailman/listinfo/scipy-user
>


More information about the SciPy-User mailing list