This is a simple script for solving quadratic equations.
Norwegian:
Andregradslikning Løser
Løs andregradslikninger på formen ax² + bx + c = 0. Skriv inn koeffisientene a, b og c for å finne røttene.
x² + 0x + 0 = 0
Løsning: x = 0
Likningen er x² + 0x + 0 = 0
Dette er en enkel likning: x² = 0
Løsningen er x = 0 (dobbel rot)
Formel: For en andregradslikning ax² + bx + c = 0, er løsningene gitt ved:
x = (-b ± √(b² – 4ac)) / 2a
Diskriminanten b² – 4ac bestemmer antall løsninger:
- Hvis b² – 4ac > 0: To reelle løsninger
- Hvis b² – 4ac = 0: Én reell løsning (dobbel rot)
- Hvis b² – 4ac < 0: To komplekse løsninger (ikke reelle)
English:
Quadratic Equation Solver
Solve quadratic equations in the form ax² + bx + c = 0. Enter the coefficients a, b, and c to find the roots.
x² + 0x + 0 = 0
Solution: x = 0
The equation is x² + 0x + 0 = 0
This is a simple equation: x² = 0
The solution is x = 0 (double root)
Formula: For a quadratic equation ax² + bx + c = 0, the solutions are given by:
x = (-b ± √(b² – 4ac)) / 2a
The discriminant b² – 4ac determines the number of solutions:
- If b² – 4ac > 0: Two real solutions
- If b² – 4ac = 0: One real solution (double root)
- If b² – 4ac < 0: Two complex solutions (not real)