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

Algebra: Implement a parser for function arguments that are not enclosed by parentheses #13

Open
avighnac opened this issue Feb 25, 2023 · 0 comments
Labels
wontfix This will not be worked on

Comments

@avighnac
Copy link
Member


  if (s[after_pow] != '(')
    {
      throw std::runtime_error ("Error: Function contents have to be enclosed "
                                "in parentheses.");
    }

Instead of throwing a runtime error, try interpreting it. For example:

  • sinx = sin(x)
  • log2 = log(2)
  • sqrt54 = sqrt(54)
  • tan2x= tan(2x)
  • cbrtx+4 = cbrt(x) (+ 4, but this part is ignored)
@avighnac avighnac added the wontfix This will not be worked on label May 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

1 participant