--- loncom/xml/lonxml.pm 2017/11/16 23:54:43 1.531.2.22.2.1 +++ loncom/xml/lonxml.pm 2017/12/06 14:23:44 1.531.2.23 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # XML Parser Module # -# $Id: lonxml.pm,v 1.531.2.22.2.1 2017/11/16 23:54:43 raeburn Exp $ +# $Id: lonxml.pm,v 1.531.2.23 2017/12/06 14:23:44 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -69,6 +69,7 @@ use Safe(); use Safe::Hole(); use Math::Cephes(); use Math::Random(); +use Math::Calculus::Expression(); use Opcode(); use POSIX qw(strftime); use Time::HiRes qw( gettimeofday tv_interval ); @@ -914,6 +915,7 @@ sub init_safespace { $safehole->wrap(\&Apache::functionplotresponse::fpr_objectcoords,$safeeval,'&fpr_objectcoords'); $safehole->wrap(\&Apache::functionplotresponse::fpr_vectorlength,$safeeval,'&fpr_vectorlength'); $safehole->wrap(\&Apache::functionplotresponse::fpr_vectorangle,$safeeval,'&fpr_vectorangle'); + $safehole->wrap(\&Math::Calculus::Expression::math_calculus_expression,$safeeval,'&math_calculus_expression'); # use Data::Dumper; # $safehole->wrap(\&Data::Dumper::Dumper,$safeeval,'&LONCAPA_INTERNAL_Dumper'); @@ -2362,7 +2364,7 @@ sub register_insert { sub dump_insertlist { my ($ext) = @_; - open(XML,">","/tmp/insertlist.xml.$ext"); + open(XML,">/tmp/insertlist.xml.$ext"); print XML (""); my $i=0;