Jacob S. wrote:

eval() is good and it can be done using it.
I wrote a -- IMHO -- really great functiongraphing program using vpython.
If you would like to see it, just reply and say so.


Out of curiosity, I would like to see your program. There's always something to learn (and even more so for me, being a newbie)

Please tell me what you are using to plot the points. (big grin) Vpython,
wxpython, what?
I'm curious--it's just someone else is working on a project that I'm working
on...


At the moment, nothing :-s
I'm learning Phyton, and I thought that this would be an interesting challenge. For what I've seen, Tkinter's Canvas 'could possibly' do the job. I still have to try it out. In case that didn't work, I was thinking in looking through wxpython.



To help you out.
You need some sort of error checking to be sure that within your given range
you
won't get something like a math domain error.


Yes, I thought that:
try:
   #function
exception:
   pass


If you want more suggestions, ask....
Please, tell me how you're doing. It sounds interesting.


At the moment, I have almost nothing. After John Fouhy's replies I have rewritten the few lines I had at least three times :o)
It will be simple, I intend to support viewing specific parts of the function (instead of a fixed view), multiple graphs, perhaps an option to save/load functions. I first made a program like this in Qbasic 4.5, and thought doing it again in Python with an interface and more advanced options may be very entretaining. :-) I can send you the source/exe if you want (sadly you can't choose what you want to see in the exe version, the function must be hard-coded).


Thanks
Ismael
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to