https://github.com/filiprokita/quadratic-equation-solver
This program is a quadratic equation solver that calculates the roots of a quadratic equation with given coefficients. The user is prompted to input the values of 'a', 'b', and 'c' and then the program solves the equation and displays the roots. If the value of delta is negative, the program displays an error.
https://github.com/filiprokita/quadratic-equation-solver
algorithm computer-science console-application cpp equation-solver math math-solver numerical-methods programming quadratic-equation quadratic-equation-solver roots
Last synced: about 1 month ago
JSON representation
This program is a quadratic equation solver that calculates the roots of a quadratic equation with given coefficients. The user is prompted to input the values of 'a', 'b', and 'c' and then the program solves the equation and displays the roots. If the value of delta is negative, the program displays an error.
- Host: GitHub
- URL: https://github.com/filiprokita/quadratic-equation-solver
- Owner: FilipRokita
- Created: 2021-12-04T23:10:55.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-04-04T12:37:47.000Z (about 2 years ago)
- Last Synced: 2025-01-30T01:41:50.836Z (3 months ago)
- Topics: algorithm, computer-science, console-application, cpp, equation-solver, math, math-solver, numerical-methods, programming, quadratic-equation, quadratic-equation-solver, roots
- Language: C++
- Homepage:
- Size: 14.4 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Quadratic Equation Solver
The Quadratic Equation Solver is a simple console application that can solve quadratic equations of the form ax^2 + bx + c = 0. It prompts the user to input the values of a, b, and c, and then calculates and displays the values of x1 and x2.
## How to Use
1. Run the program by compiling and executing the `quadratic_equation_solver.cpp` file in your preferred C++ development environment.
2. When prompted, enter the values of a, b, and c for your quadratic equation.
3. The program will then calculate and display the values of x1 and x2, if they exist.
4. Press any key to continue and solve another quadratic equation.## Requirements
- C++ development environment (e.g. Visual Studio, Code::Blocks, etc.)
## Notes
- If the discriminant (b^2 - 4ac) is less than zero, the program will display a message indicating that the equation has no real roots.
I hope you find this program useful!