[system] / trunk / pg / macros / PGcomplexmacros.pl Repository:
ViewVC logotype

Diff of /trunk/pg/macros/PGcomplexmacros.pl

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1525 Revision 2958
244 my ($inVal,$PG_eval_errors,$PG_full_error_report) = PG_answer_eval($rh_ans->{student_ans}); 244 my ($inVal,$PG_eval_errors,$PG_full_error_report) = PG_answer_eval($rh_ans->{student_ans});
245 245
246 if ($PG_eval_errors) { 246 if ($PG_eval_errors) {
247 $rh_ans->throw_error('EVAL','There is a syntax error in your answer'); 247 $rh_ans->throw_error('EVAL','There is a syntax error in your answer');
248 $rh_ans->{ans_message} = clean_up_error_msg($PG_eval_errors); 248 $rh_ans->{ans_message} = clean_up_error_msg($PG_eval_errors);
249 # return $rh_ans; 249 return $rh_ans;
250 } else { 250 } else {
251 $rh_ans->{student_ans} = prfmt($inVal,$options{format}); 251 $rh_ans->{student_ans} = prfmt($inVal,$options{format});
252 } 252 }
253 253
254 $inVal = cplx($inVal,0) unless ref($inVal) =~/Complex/; 254 $inVal = cplx($inVal,0) unless ref($inVal) =~/Complex/;

Legend:
Removed from v.1525  
changed lines
  Added in v.2958

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9