-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
simplify sqrt(x)*sqrt(x)
#3231
Comments
Thanks for your suggestion. I think adding a rule How about Anyone interested in creating a PR adding (and testing) this rule? |
The main thing I'm after here is getting symbolicEqual to handle sqrt properly. Your suggestion of I realize it's a bigger project/idea, but it's almost like you need the simplification engine to use all the simplification rules including Human preference is to display sqrt instead of ^0.5 but the computer's preference for figuring out what it all "means" is ^0.5 instead of sqrt. Let the computer figure out simplification with powers, let people see the final answer the way they were taught to expect it their whole life. |
I'm happy to do the PR once I know what your preference is for how this is handled. |
Yes that makes sense. I think we can take three approaches here:
I think that option (3) would be best in long term, and will most likely improve the simplification process over all. But it may be a lot of work. So before we go in that direction, I think we should do a little proof of concept to figure out what it involves and how it will shape up. |
I asked it to simplify sqrt(x)*sqrt(x) and it couldn't do it. Nor could it do really anything with sqrt. As soon as I added the following single rule, it works perfectly and does all the things you would hope it should know how to do!
I suggest adding 'sqrt(n1) -> n1^0.5' to simplify.js
The text was updated successfully, but these errors were encountered: