--- loncom/homework/lonmaxima.pm 2017/03/05 19:30:56 1.32 +++ loncom/homework/lonmaxima.pm 2017/03/07 01:56:56 1.35 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Interface routines to MAXIMA CAS # -# $Id: lonmaxima.pm,v 1.32 2017/03/05 19:30:56 raeburn Exp $ +# $Id: lonmaxima.pm,v 1.35 2017/03/07 01:56:56 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -155,10 +155,7 @@ sub maxima_eval { sub compareterms { my ($socket,$terma,$termb)=@_; - if ($terma =~ m{[.*^/\s]+(|\(\s*\()$}) { - return 'Error: blacklisted'; - } - my $difference=$terma.'-('.$termb.')'; + my $difference='('.$terma.')-('.$termb.')'; if (&blacklisted($difference)) { return 'Error: blacklisted'; } my $reply=&maximareply($socket,'trigsimp(trigreduce('.$difference.'));'); if ($reply=~/^\s*0\s*$/) { return 'true'; }