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

Math expression parsing for numerical entry text boxes #96

Open
jlbabilino opened this issue Jul 31, 2023 · 3 comments
Open

Math expression parsing for numerical entry text boxes #96

jlbabilino opened this issue Jul 31, 2023 · 3 comments
Labels
component: ui UI frontend type: enhancement New feature or request

Comments

@jlbabilino
Copy link
Member

Example: typing 2 + 3 into a number text box should enter the value of 5.

Basic mathematical syntax, functions, and constants should be supported. (sin(pi/2)+1*2)^2 will result in 9.

An example implementation of this is in HelixNavigator.

@jlmcmchl
Copy link

Is this intended to support limits? ie sin(0)/0 is undefined on its own, but lim x->0 sin(x)/x is 1.

@jlbabilino
Copy link
Member Author

Is there a specific situation you need that kind of functionality?

@jlbabilino
Copy link
Member Author

I think mathjs is the perfect candidate for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: ui UI frontend type: enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants