Welcome to Computor v1, where I get to show off my mad polynomial-solving skills, using Rust 🦀.
🧮 This project is all about tackling 2nd-degree (or lower) polynomial equations. If you've ever felt the need to flex your math muscles—or if you just want to stop copying formulas from the internet—this is your chance!
- Reduces polynomial equations like a boss. 🔥
- Identifies the degree of the polynomial. (Because, well, that's important.)
- Solves for real and complex solutions. No guesswork here, just pure math magic. 🧙♂️
- Tells you how spicy your discriminant is (positive, negative, or zero—it’s like a mood ring for your equations).
$ ./build/computor_v1 "5 + 4 * X - 9.3 * X^2 = 1"
Reduced form: 4 + 4 * X - 9.3 * X^2 = 0
Polynomial degree: 2
Discriminant is strictly positive, the two solutions are:
0.905239 and -0.475131
- Handles your messed-up input. Yes, I know you like freeform. 🙃
- Reduces solutions to neat, irreducible fractions. So elegant. ✨
- Shows intermediate steps—because math is a journey, not a destination.
Clone this bad boy, compile it (Rust does the heavy lifting), and then unleash your inner mathematician.
Enjoy solving polynomials, one equation at a time.