Here’s a slide where I try to define the answer using patterns.fraction. It doesn’t work if the negative sign gets thrown outside the fraction. My fraction pattern no longer matches. It only works if you force the negative in the numerator. Any ideas how to fix this? Simplify Negative Exponents • Activity Builder by Desmos
An additional check something like this should work:
p.negative(p.fraction(Num,Den)).matches(this.latex)
(I didn’t really check your code to make it specific to you. It was checked using an input.)
1 Like
Thank you, this worked!
1 Like