https://github.com/stefanief2004/quadraticequationsolver
Simple C# Windows Forms application that solves a quadratic equation (ax² + bx + c = 0) and displays real or imaginary solutions depending on the discriminant. Created using Visual Studio.
https://github.com/stefanief2004/quadraticequationsolver
csharp quadratic-equations windows-forms
Last synced: 2 months ago
JSON representation
Simple C# Windows Forms application that solves a quadratic equation (ax² + bx + c = 0) and displays real or imaginary solutions depending on the discriminant. Created using Visual Studio.
- Host: GitHub
- URL: https://github.com/stefanief2004/quadraticequationsolver
- Owner: StefanieF2004
- License: mit
- Created: 2025-07-04T12:35:36.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-07-04T13:09:50.000Z (about 1 year ago)
- Last Synced: 2025-07-04T15:24:26.618Z (about 1 year ago)
- Topics: csharp, quadratic-equations, windows-forms
- Language: C#
- Homepage:
- Size: 101 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Quadratic Equation Solver (C# Windows Forms)
This is a simple **C# Windows Forms application** that solves a **quadratic equation** of the form:
> ax² + bx + c = 0
The program takes coefficients `a`, `b`, and `c` as input, calculates the **discriminant D = b² - 4ac**, and then displays the solutions based on the value of D:
##Logic
- If **D > 0** → two **real and distinct** solutions
- If **D = 0** → one **real double root**
- If **D < 0** → two **complex (imaginary)** solutions
The app is built in **Visual Studio (C#)** using Windows Forms, with basic input validation and result display using TextBoxes and Labels.
---
##How to Use
1. Enter values for `a`, `b`, and `c` in the corresponding text fields.
2. Click **"Реши"** to calculate the solutions.
3. The results will be shown in the lower fields:
- If real: solutions `x₁` and `x₂`
- If imaginary: real and imaginary parts
4. Click **"Избриши"** to clear all inputs and results.
---
## Features
- Discriminant logic
- Real & imaginary number support
- Error handling for invalid input
- Clean and easy-to-use UI
---
## Example Screenshot

---
## Technologies
- Language: **C#**
- IDE: **Visual Studio**
- Framework: **.NET Windows Forms**
---
## Author
Created by **[Stefanija Fileva]**
Faculty project – Computer Engineering and Technology
2025
---
## License
This project is licensed under the MIT License – see the [LICENSE](LICENSE) file for details.