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

Deal with expression("") as an operand #971

Closed
christianp opened this issue Dec 6, 2022 · 0 comments
Closed

Deal with expression("") as an operand #971

christianp opened this issue Dec 6, 2022 · 0 comments

Comments

@christianp
Copy link
Member

A question uses a variable v to represent a variable which will be multiplied by a coefficient c.
They have some TeX: \simplify{ {c}{v} }.

Sometimes this should be a constant, so v = expression(""). This leads to v being an expression value whose tree attribute is null. Nothing is currently set up to expect a null value for the tree.

Before v7, substitution into \simplify was done by string interpolation of the JME rendering of the value, so this produced an empty string. Perhaps we should catch empty values at the point where the curly braces are replaced with subvars function calls.

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

1 participant