-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
isPolynomialTerm #8
Comments
I think it makes sense to define custom query functions like this inside of |
Makes sense :) Should I do a one off piece of code in math parser for identifiers or identifiers with exponents then? |
Yes, but in |
I can't change the printing in mathsteps though, it'd have to be in math parser. I can just write the check where I need it as a one-off instead of making it a broad use function though. If you do want to keep spaces between coefficients and identifiers with exponents, I can also just update all the mathsteps tests |
Sorry... I didn't pick up on:
We could print I feel like it probably makes sense to provide a way to change settings in the output of the |
we already made the change to print my preferred printing would be:
so the conditions would be
if you like that, I can update the math-parser print function to do that for now, and we can make it configurable later if you like if you're not really into that or want to do something different, I'll just update the mathsteps tests - it's not a huge deal ...but if I can print things the way I like without much friction (if you prefer that style or don't mind either way) I'd rather update but yeah, no worries if you want to do something different |
this is being addressed in semantic-math/math-parser#68 |
It makes sense that numbers are terms that can be found in a polynomial, but there were a bunch of cases in mathsteps where we used a different "polynomial term" which referred to things like
x
and2x
and2x^2
but not2
which was helpful for symbol manipulation - does it seem reasonable to add a function toquery
that checks for a type like this? If so, do you have ideas for what to call it?I was thinking of using it for another update to
math-parser
that prints2x^2
without a space similar to2x
The text was updated successfully, but these errors were encountered: