--- loncom/homework/lonmaxima.pm 2006/03/11 16:28:03 1.1 +++ loncom/homework/lonmaxima.pm 2006/06/12 13:51:13 1.3 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Interface routines to MAXIMA CAS # -# $Id: lonmaxima.pm,v 1.1 2006/03/11 16:28:03 www Exp $ +# $Id: lonmaxima.pm,v 1.3 2006/06/12 13:51:13 bisitz Exp $ # # Copyright Michigan State University Board of Trustees # @@ -59,7 +59,7 @@ sub maximareply { sub blacklisted { my ($cmd)=@_; foreach my $forbidden ('save','load','plot','lisp','includ','compil','file','batch','stringout','translat','stout','stin','block','system') { - if ($cmd=~/$forbidden/) { return 1; } + if ($cmd=~/$forbidden/s) { return 1; } } return 0; } @@ -73,6 +73,17 @@ sub compareterms { if ($reply=~/^Error\:/) { return $reply; } return 'false'; } + +sub maxima_check { + my ($response,$answer,$type, + $tol_type,$tol, + $sig_lbound,$sig_ubound, + $ans_fmt,$unit,$calc,$id_list, + $points, + $randomseed, + $reterror) = @_; + return 7; +} 1; __END__;