Bug in applet.getValueString("diff")?

Michael Borcherds shared this question 14 years ago
Answered

The example at:


http://www.geogebra.org/en/...


doesn't work here using GeoGebra pre-19th June.


The graphs are all drawn correctly but you get the wrong message if you get the answer correct.


The call


    var diff = applet.getValueString("diff").substring(10);


is where the problem is I think.


It returns "ined" rather than the correct answer sometimes (when there are no xs in the answer?)


eg

input -6x^2+5 output 2x - 3

input -6x^2+x+5 output x - 3

input -6x^2+2x+5 output ined

input -6x^2+3x+5 output -x - 3


(Windows XP, Java 6u1, Firefox 2.04/IE7)

Comments (2)

photo
1

Thanks for the post, murkle.


CAUTION : Experimenting with this example seriously locked my browser.

Zen Biker Maniac

photo
1

Now seems to be fixed in 3.0 beta 2


thanks!

© 2022 International GeoGebra Institute