Re: Read any function in runtime

2009-10-26 Thread Rhodri James
On Fri, 23 Oct 2009 17:39:40 +0100, Matt McCredie mccre...@gmail.com wrote: joao abrantes senhor.abrantes at gmail.com writes: Hey. I want to make a program like this:print Complete the function f(x)=then the user would enter x+2 or 1/x or any other function that only uses the variable

Re: Read any function in runtime

2009-10-26 Thread Matt McCredie
Rhodri James rhodri at wildebst.demon.co.uk writes: On Fri, 23 Oct 2009 17:39:40 +0100, Matt McCredie mccredie at gmail.com wrote: joao abrantes senhor.abrantes at gmail.com writes: Hey. I want to make a program like this:print Complete the function f(x)=then the user would

Re: Read any function in runtime

2009-10-26 Thread Jack Norton
Matt McCredie wrote: Rhodri James rhodri at wildebst.demon.co.uk writes: On Fri, 23 Oct 2009 17:39:40 +0100, Matt McCredie mccredie at gmail.com wrote: joao abrantes senhor.abrantes at gmail.com writes: Hey. I want to make a program like this:print Complete the function

Read any function in runtime

2009-10-23 Thread joao abrantes
Hey. I want to make a program like this: print Complete the function f(x)= then the user would enter x+2 or 1/x or any other function that only uses the variable x. Then my python program would calculate f(x) in some points for example in f(2),f(4).. etc . How can I do this? --

Re: Read any function in runtime

2009-10-23 Thread Matt McCredie
joao abrantes senhor.abrantes at gmail.com writes: Hey. I want to make a program like this:print Complete the function f(x)=then the user would enter x+2 or 1/x or any other function that only uses the variable x. Then my python program would calculate f(x) in some points for example in