[sympy] Re: Sympy scripting and inputting functions

2008-11-23 Thread Sebastian
Hi Matt You can use raw_input to get the function as string: >> in = raw_input() E.g. the user would enter something like "sin(x)*log(x)". Then you can use the sympify function to convert this string into a sympy expression: >> expr = sympify(in) Now you need to find out what symbol the us

[sympy] Re: Sympy scripting and inputting functions

2008-11-24 Thread Vinzent Steinberg
There is a multidimensional Newtonian solver in sympy which does exactly this (only for the multidimensional case). Try msolve() to use it. The code for the numerical solver is at sympy/solvers/numeric.py, the interface (which calculates the Jacobian matrix symbolically) at sympy/solvers/solvers.p

[sympy] Re: Sympy scripting and inputting functions

2008-11-29 Thread Ondrej Certik
Hi Matt! On Sun, Nov 23, 2008 at 4:52 AM, Matt <[EMAIL PROTECTED]> wrote: > > Hi all, > I am just starting to use Sympy and I have a couple of questions. My > need for sympy arose out of working on a simple Newton's method python > script which is intended to use Newton's method (a *numerical*) m