| … | |
… | |
| 560 | $display_ans .= " ["; |
560 | $display_ans .= " ["; |
| 561 | $rh_ans->{preview_text_string} .= ' ['; |
561 | $rh_ans->{preview_text_string} .= ' ['; |
| 562 | $rh_ans->{preview_latex_string} .= ' ['; |
562 | $rh_ans->{preview_latex_string} .= ' ['; |
| 563 | for( $k = 0; $k < scalar( @{$array[$i][$j]} ) ; $k ++ ){ |
563 | for( $k = 0; $k < scalar( @{$array[$i][$j]} ) ; $k ++ ){ |
| 564 | my $entry = $array[$i][$j][$k]; |
564 | my $entry = $array[$i][$j][$k]; |
| 565 | |
565 | $entry = math_constants($entry); |
| 566 | # This parser code was origianally taken from PGanswermacros::check_syntax |
566 | # This parser code was origianally taken from PGanswermacros::check_syntax |
| 567 | # but parts of it needed to be slighty modified for this context |
567 | # but parts of it needed to be slighty modified for this context |
| 568 | my $parser = new AlgParserWithImplicitExpand; |
568 | my $parser = new AlgParserWithImplicitExpand; |
| 569 | my $ret = $parser -> parse($entry); #for use with loops |
569 | my $ret = $parser -> parse($entry); #for use with loops |
| 570 | |
570 | |