-
Notifications
You must be signed in to change notification settings - Fork 75
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
Inconsistent sqrt syntax #139
Comments
Hmm this is a tricky one, because you would expect something like Your issues have been really helpful by the way. Thanks! |
Even better, WolframAlpha differentiates between |
Oh yeah that makes sense. A bit trickier to parse, but should be possible |
I think a bigger issue here is this:
but then also this:
The sqrt should either be greedy and capture any operation after it or capture nothing after it (unless theres parentheses wrapping everything under the sqrt) not both at the same time depending on the operator. For example this is how I think they should be parsed:
and require the user to add parentheses for these operations to be pulled into the sqrt:
|
√(2)×2 is 2√2, but
√2×2 = √4 = 2
I think multiplication should always be parsed as being outside of the sqrt.
The text was updated successfully, but these errors were encountered: