Read any function in runtime

joao abrantes senhor.abrantes at gmail.com
Fri Oct 23 18:22:48 CEST 2009


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?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20091023/07c9a758/attachment.html>


More information about the Python-list mailing list