[sympy] Sympy scripting and inputting functions

2008-11-23 Thread Matt
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*) method on somewhat arbitrary - but well-behaved - input functions. Since Newton's meth

[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: Thanks to all of you!!!

2008-11-23 Thread Ondrej Certik
Hi Kirr! On Fri, Nov 21, 2008 at 8:45 PM, Kirill Smelkov <[EMAIL PROTECTED]> wrote: > > On Mon, Nov 17, 2008 at 02:15:22PM +0100, Abderrahim KITOUNI wrote: >> >> Hi everyone, >> it's been a long time, I was following the project but didn't have >> time to contribute. >> >> 2008/11/16 Riccardo Gori