--- loncom/homework/functionplotresponse.pm 2011/10/19 00:20:28 1.67
+++ loncom/homework/functionplotresponse.pm 2011/10/27 00:36:37 1.69
@@ -1,7 +1,7 @@
# LearningOnline Network with CAPA
# option list style responses
#
-# $Id: functionplotresponse.pm,v 1.67 2011/10/19 00:20:28 www Exp $
+# $Id: functionplotresponse.pm,v 1.69 2011/10/27 00:36:37 www Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -76,7 +76,7 @@ sub geogebra_default_parameters {
-
+
@@ -164,6 +164,14 @@ sub update_register {
sub set_point_coordinate {
my ($id,$variable,$x,$y,$fixed)=@_;
my $mult=($fixed?'a*':'');
+# Get rid of wild exponents, make sure it's a number
+ $x=1.*$x;
+ $y=1.*$y;
+# GeoGebra does not understand "E"
+ $x=~s/[e|E]/\*10\^/;
+ $x=~s/\+//;
+ $y=~s/[e|E]/\*10\^/;
+ $y=~s/\+//;
return (<