aldweb

Close I. aldweb

Close II. PC Freeware

Close III. Palm Freeware

Close IV. Palm Shareware

Close V. iziBasic Palm

Close VI. Palm Knowledge

Close VII. Pocket Computer

Close VIII. miniPortail

Special !



Mobile version of
the aldweb Site

m.aldweb.com


Neither French, nor English?

Try one of these flags then:
[de] [es] [it] [pt]
Search




Weather / Spam / www

Lyon Weather


aldweb against spam


Newsletter
To receive news about this website, consider subscribing to our Newsletter.
Subscribe
Unsubscribe
298 Subscribers
Family's web sites

Webmaster - Infos
Friends News
Visits

   visitors

   visitors online

Poll
What do you think of the new design of the aldweb Site?
 
Great !
Beautiful
Average
So ugly...
Results
forum.gifForum - iziBasic - Topic #1219

Forum - Forum
iziBasic - iziBasic


Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 257

active  Topic # 1219  text input to equation

24/06/2005 @ 17:41
by nard

Anonymous



First of all, Hi. Great little program! My question, hopefully, is simple ( haven't done much programming in many years). If I hard code the equation "y=x^2" my little graphing program works. Is there an easy way to input this from a text field? I would like to change "x^2" to "x^3" or
"sin(x)" etc., without recoding the
program each time.
Thanks
Write to nard   Post an answer  Top

Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Answer n° 1
--------
24/06/2005 @ 23:01
by aldweb

Anonymous

visitor
Yes, this can be done.
BUT, it will require you to code a complete math parser in your application which will have to interprete the equation written in a text variable on the fly.
This is, from my point of view, a very challenging so a very interesting work to achieve

And, you are the lucky one! Indeed, in the next release of iziBasic, there will be a new sample program which does include such a math parser

Cheers,
aldweb
Write to aldweb   Post an answer  Top
active topic active   closed topic closed   Sticky Sticky   New New message   -   Correct Correct message   Close Close topic   Make sticky Make sticky
[]
Forum Topic  Forum 



 
^ Top ^