problems with trailing equals

problems with trailing equals

by Rudy Scott -
Number of replies: 4

One of my students tried to post this:

"@@@lim(((x^2+1)/(5-x)),x,5)=@@@no limit"

While not technically good notation, it doesn't seem that it should produce a syntax error in the filter.  But here's what I get:

@@lim(((x^2+1)/(5-x)),x,5)=@@no limit

Any ideas?

--Rudy

Average of ratings: -
In reply to Rudy Scott

other algebra filter woes

by Rudy Scott -

I also had trouble representing a difference quotient example like:

@@@(f(3+h)-f(3))/h@@@ which gave me @@(f(3+h)-f(3))/h@@

stripping the parenthesis that I wanted.  I should also mention that in general the filter is terrific and we very much enjoy using it! 

Thanks again for all your hard work, Zig!

--Rudy

In reply to Rudy Scott

Re: other algebra filter woes

by Zbigniew Fiedorowicz -
Use @@@(funf(3+h)-funf(3))/h@@@ ==> @@(funf(3+h)-funf(3))/h@@.  The prefix "fun" before a one character symbol specifies that it stands for a function as opposed to a real variable.
In reply to Rudy Scott

Re: problems with trailing equals

by Zbigniew Fiedorowicz -
The algebra filter is built on top of the WeBWorK algebra parser.  It's original purpose is to convert an algebraic expression into a Perl function.  I've adapted and extended it somewhat, but it still requires complete algebraic expressions not fragments, e.g equations have to be balanced.  If you want to do fragments, you can use the tex filter.