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

Equation - Equations solver #125

Open
201flaviosilva opened this issue May 22, 2024 · 0 comments
Open

Equation - Equations solver #125

201flaviosilva opened this issue May 22, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@201flaviosilva
Copy link
Owner

Create an eval like, but only for mathematics equations

Example:

equation("1+2"); // 3
equation("2*3-1"); // 5
// ....

Notes:

  • Convert the mathematical expression into a list of tokens (tokenization);
  • Evaluate the list of tokens considering the precedence of operators;
@201flaviosilva 201flaviosilva added this to the 1.4 - New utils milestone May 22, 2024
@201flaviosilva 201flaviosilva added the enhancement New feature or request label May 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant