Answer the question
In order to leave comments, you need to log in
Solution calculator. How to implement?
Task: to implement a calculator with the output of a step-by-step solution of simple equations.
Input data: a string of indeterminate length. Actions: +; -; *; / ;
Output: step by step solution of the equation.
Example:
Input: 2 + 2 * 2 / 2 - 2 * 4 / 2
Output:
2 + 2 * 2 / 2 - 2 * 4 / 2 =
2 + 4 / 2 - 8 / 2 =
2 + 2 - 4 =
4 - 4 = 0
Any ideas?
Answer the question
In order to leave comments, you need to log in
Convolution optimization. The list of intermediate steps is the solution.
https://ru.wikipedia.org/wiki/%D0%A1%D0%B2%D1%91%D...
My shit code in c++ that implements step-by-step solution of equations (taking into account operator precedence) and supports variables and constants. Slightly unfinished, but there is a command line interpreter.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question