-
Notifications
You must be signed in to change notification settings - Fork 0
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
Derivatives #16
Comments
What is the |
The derivative is supposed to be a placeholder... maybe that doesn't make sense. Maybe we could pass an natural number for the order of the derivatives when we're not specifying which variable we're differentiating, e.g.
|
So when we do specify the polynomial (e.g. And if we also specify the variable with which we are differentiating (e.g It would also help if we called them Lagrange and Leibniz notation. |
I think the way I'm approaching this is to create a regex expression to match the fraction form for derivatives. By doing this, we will be assuming that |
I would parse
I haven't seen
What would be the benefit of explicitly labelling the notation? There's lots of other notation that people could use to specify differentials e.g. Euler notation and Newton notation. |
Got it. For the |
I think what you're trying to describe might one of the following:
That begs the question, why not require that derivatives always specify which variable the operation is with respect to? If there are multiple statements, we'd have to have the parser remember previous statements, e.g. There's also the question of representing differential equations where no variables are present, e.g.
The AST is one layer is a system. In addition to the AST there is also:
Eventually, we'll need a way to describe and enforce these semantics. |
Derivatives can be taken multiple times, this is usually referred to as the "order" of the derivative, e.g. 1st order, 2nd order, etc.
Derivatives can be take of different variables if the expression contains multiple variables, e.g. d^2/dxdy (x^2 + y^2).
There are also lots of way to specify the notation, but since we only care about semantics let's ignore representation for now.
Here are some expressions and possible AST representations:
The reason for going with
diff
instead ofDerivative
for theop
specifier is that I'd like to continue to use MathML as an inspiration and they usediff
.The text was updated successfully, but these errors were encountered: