algebra syntax bug

algebra syntax bug

by Yip wing chiu -
Number of replies: 1

@@@lim( sin(x)/x, x,0)=1@@@ = @@lim( sin(x)/x, x,0)=1@@

@@@lim( sqrt(1+x^2)/x, x, infty)=1@@@ = @@lim( sqrt(1+x^2)/x, x, infty)=1@@

It seems the limit do not accept trigo. function.

Average of ratings: -
In reply to Yip wing chiu

Re: algebra syntax bug

by Zbigniew Fiedorowicz -
You should not expect nested constructions involving limits, trig functions or integrals to work. It's difficult if not impossible to do this via regular expression substitution on the TeX expression output by the WeBWorK algebra parser. To get this to work properly, one would need to delve into the innards of the WeBWorK parser and make modifications there. I won't have time to do this in the near future.

You can write such expressions using TeX notation. You use algebradebug.php to do a translation into TeX and then repair the incorrect translation there.