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

printing: no space after coefficients #68

Open
evykassirer opened this issue Sep 4, 2017 · 6 comments
Open

printing: no space after coefficients #68

evykassirer opened this issue Sep 4, 2017 · 6 comments
Assignees

Comments

@evykassirer
Copy link
Contributor

e.g. print 4x^2 without the space

i.e. a number followed by an identifier or a identifier with exponent would have no space and assume the constant is a coefficient

@kevinbarabash
Copy link
Member

Since we group adjacent letters into a single identifier 4xy^2 is actually 4 * (xy)^2. Users would have to type this as 4x y^2 which looks weird. I feel like we probably want 4xy^2 to parse as 4 x y^2 and things like xyz should parse as x y z, but well-known identifiers such as pi, sin, etc. should remain grouped. Thoughts?

@evykassirer
Copy link
Contributor Author

agreed! I believe that's how mathjs works too

@evykassirer
Copy link
Contributor Author

oh actually mathjs turns xyz into an unknown identifier

not sure how I feel about this - like, I could see math teachers naming their own functions maybe?

@kevinbarabash
Copy link
Member

I can add a way to add to the list of well-known identifiers so if there's a multi character identifier in the question, we can treat it as such.

@evykassirer
Copy link
Contributor Author

that helps! I'd have to expose that in mathsteps, but I'm ok with that being a limitation of mathsteps for now - people can always rename their functions to one letter long function names :p

@kevinbarabash kevinbarabash self-assigned this Sep 14, 2017
@kevinbarabash
Copy link
Member

@evykassirer I got a start on this in #73.

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

No branches or pull requests

2 participants