Home
Welcome
Matrixmania Blog
Sitemap / Search
Matlab Books
Forums and Help
Contact
Basics
Quick Matlab Guide
Matlab Tutorial
Matlab Examples
Matlab Flow Control
Boolean Logic
Plots and GUI
Matlab 2D Plots
Matlab 3D Plots
Matlab GUI
Applications
Calculus
Linear Algebra
Matlab Cookbook I
Matlab Cookbook II
Electrical Calc
Probab and Stats
Finance Apps
Other
Online Calculators
Relevant Links
Notes on Comp
Fun!
Scilab
Your own Website?
Terms/Policies
Quadratic Equation Solver
Basic Examples
Online Calculator
Downloadable Presentation
Basics
Below you can find a
quadratic equation solver
developed using a simple code in JavaScript. It uses the known formula to calculate the roots (real and complex) of a quadratic expression.
If you have
ax
^{2}
+
bx
+
c
= 0
you can solve for
x
using
Example 1
Example 2
If you have coefficients:
a = 1, b = 4 and c = 3
you'll get:
x
_{1}
= -1
x
_{2}
= -3
If you have coefficients:
a = 3, b = 4 and c = 5
you'll get:
x
_{1}
= -0.6667 + 1.1055i
x
_{2}
= -0.6667 - 1.1055i
Online Calculator
To be able to use the following calculator you have to allow the use of JavaScript codes on your navigator.
Enter the three coefficients of your quadratic equation...
a =
b =
c =
The solutions are:
x
_{1}
=
x
_{2}
=
Downloadable Presentation
From 'Quadratic Equation Solver' to home
From 'Quadratic Equation Solver' to Free Online Calculators
Top
How to code Quadratic Equations in Matlab