A C++ terminal-based equation solver that parses and evaluates mathematical expressions with a single variable (x).
It finds and approximates one root within a given range using scanning and binary search.
A C++ terminal-based equation solver that parses and evaluates mathematical expressions with a single variable (x).
It finds and approximates one root within a given range using scanning and binary search.
The tester has found a new bug 
The bug was that it gave a very small number instead of zero
The solution was very simple; I put a variable as a reference for errors and check if the float difference is smaller than it. It rounds the number.
Log in to leave a comment
I don’t have too much to say but it works well :)
Fixed all bugs
Implemented binary search for faster solving
And finally made it work on doubles
Log in to leave a comment
And finally, the main code works well using brute force to find any value of x that makes the equation equal to zero.
Next steps:
Log in to leave a comment