Forum archive 2000-2006

Bill Ziemer - minf does not preview correctly

Bill Ziemer - minf does not preview correctly

by Arnold Pizer -
Number of replies: 0
inactiveTopicminf does not preview correctly topic started 9/12/2005; 7:35:41 PM
last post 9/13/2005; 12:23:05 PM
userBill Ziemer - minf does not preview correctly  blueArrow
9/12/2005; 7:35:41 PM (reads: 501, responses: 2)
Webwork 2.1.3 with the new parser enabled.

minf entered as an answer is displayed as regular infinity. The generated image has: alt="\infty" in the html. The problem uses the code:

$ans1 = 'MINF';

&ANS(std_num_str_cmp($ans1,['INF','MINF']));

<| Post or View Comments |>


userBill Ziemer - Re: minf does not preview correctly  blueArrow
9/12/2005; 9:49:04 PM (reads: 631, responses: 1)
Found the reason (I think) in PGanswermacros.pl v1.35, line 1081 where inf and -inf are parsed into tex. The m is jettisoned in the parsing.

Changing MINF to -INF everywhere in the pg file corrects the problem.

<| Post or View Comments |>


userDavide P. Cervone - Re: minf does not preview correctly  blueArrow
9/13/2005; 12:23:05 PM (reads: 784, responses: 0)
OOPS! Sorry, that was my fault. I have fixed the code so that it works for MINF now. You can get an updated copy of PGanswermacros.pl from the CVS archive.

Davide

<| Post or View Comments |>