F(X) banner

F(X)

3 devlogs
10h 32m 11s

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.

Demo Repository

Loading README...

Hamza Sayed

The tester has found a new bug icri
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.

Attachment
Attachment
0
Hamza Sayed

Shipped this project!

Hours: 10.07
Cookies: 🍪 30
Multiplier: 2.98 cookies/hr

I don’t have too much to say but it works well :)

Hamza Sayed

Fixed all bugs
Implemented binary search for faster solving
And finally made it work on doubles

Attachment
0
Hamza Sayed

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:

  1. Make the code faster (maybe using binary search).
  2. Make a terminal user interface to make this look better.
  3. Test everything and see if I can make any optimizations to the code to make it faster or cleaner.
  4. Submitting.
Attachment
0