-
Notifications
You must be signed in to change notification settings - Fork 276
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
should a b
be implicit?
#133
Comments
oo yeah. mathsteps doesn't really consider multivariable things very well One issue is that mathjs parses 2ab with "ab" as a single symbol (pretty sure) --- but if we start using And Thanks for opening this! |
Does it make sense to parse
|
yeah, I think it makes sense to parse it like that (though "2" would a number node and "x" a symbol node, and stuff) but eventually, as we're solving, I think the tree should look like
so that we can group similar terms together to get if you were to teach this, when would you use implicit vs explicit notation (after parsing the original input as whatever they wrote) |
Given the equation
|
What about functions? For a built-in function like "sin" it is easy to parse Edit: Mathematica, for example, seems to interpret spaces as implicit multiplication. So |
mathjs parses any string followed by a ( as a function call, so x(y + 5) treats x as a function name. for multiplication you'd have to do x*(y+5). not sure what we want to do for our parser - probably the same? ideally we could parse from latex |
@evykassirer Mmh yeah that makes sense I think! What about "numbered" variables? e.g. |
yeah, any numbers following a letter would be included in the symbol name (I believe mathjs does this as well) |
math-parser parses multiple character identifiers include those containing digits. We may also want to support variables with subscripts, e.g. |
cool stuff! |
Going to close this issue because it seems resolved :) |
(resolved as in it'll be eventually handled in |
Yes |
It seems weird to treat
2 a
as implicit but nota b
or2 a b
.I would expect
2 a b
to be parsed as a singleimplicit: true, op: "*"
node. As we start to support multivariate equations as proposed in #130, we'll probably want to differentiate2 a b
from2 a * b
.The text was updated successfully, but these errors were encountered: