Skip to content
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

Objects with multiple pieces #6

Open
davidfarmer opened this issue Apr 12, 2019 · 3 comments
Open

Objects with multiple pieces #6

davidfarmer opened this issue Apr 12, 2019 · 3 comments
Assignees

Comments

@davidfarmer
Copy link
Collaborator

An expression like cos(3 x) has two pieces, and we will need a
way to recognize it as one object with two pieces:
the function cosine and its argument.

int 3 x dx has 3 pieces:
(the integral) (of 3 x) (dx)
[do I mean "the antiderivative"?]

log_10(300) has three pieces:
(the log) (base 10) (of 300)

sum_(n=1)^55 3 n has 4 pieces:
(the sum) (from n=1) (to 55) (of 3n)

int_0^1 3 x dx has 5 pieces:
(the integral) (from 0) (to 1) (of 3 x) (dx)

I'd like to discuss what input we need in order to parse these
properly.

In each case, once you identify the base object,
only a few things can happen, and you have to look past a
predetermined number of other objects to determine what
is going on. Once you have the pieces, you understand the
complete object. Then you are ready to do something with it,
such as output to semantic LaTeX.

@ymittal
Copy link
Owner

ymittal commented Apr 25, 2019

log base function is implemented (cb99669)

@ymittal ymittal self-assigned this Apr 25, 2019
@ymittal
Copy link
Owner

ymittal commented Apr 25, 2019

@davidfarmer do you have suggestions on how we can figure out the end of sum/prod/limit objects. For int/oint, we already know that the parsing should stop at the "dee var" (dx, d\theta, etc).

@davidfarmer
Copy link
Collaborator Author

davidfarmer commented Apr 25, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants