|
- Forum - iziBasic
Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 257
Sujet n° 1219 |
text input to equation |
le 24/06/2005 @ 17:41 par nard
|
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 |
|
|
Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Réponse n° 1 -------- le 24/06/2005 @ 23:01 par aldweb
visiteur |
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 |
|
|
sujet actif
sujet clos
Important!
Nouveau message -
Rectifier message
Clôturer sujet
Remonter
|
|