WeBWorK Main Forum

parser reduction rules

parser reduction rules

by Zak Zarychta -
Number of replies: 1
Are there any plans to add

x**1 == x
x**0 == 1

to the parser reduction rules ?

Zak
In reply to Zak Zarychta

Re: parser reduction rules

by Jason Aubrey -
Hi Zak,

When you are using MathObjects, doesn't already do that? Admittedly, I haven't tested this :), but that's what is claimed for the _reduce method here:

http://webwork.maa.org/viewvc/system/trunk/pg/lib/Parser/BOP/power.pm?view=markup

Jason