I need to solve complex math equations like 1 + 1 - (2 + 4 * 3) or (6 - 8 / 2) + 3. So far I have the code to solve inf
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
I need to solve complex math equations like 1 + 1 - (2 + 4 * 3) or (6 - 8 / 2) + 3. So far I have the code to solve inf
I need to solve complex math equations like 1 + 1 - (2 + 4 * 3) or (6 - 8 / 2) + 3. So far I have the code to solve infix and postfix as well as code to convert infix to postfix and viceversa. However, the challenge is to not use the Shunting Yard Algorithm, therefore, my question is what is an alternative method to solve these equations?