Skip to content

teo-101/Equation-Calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Equation Calculator

• Description:

  A 2nd degree equation ( quadratic ) solver made using JavaScript.

• What is a Second Degree Equation:

A second degree equation is a mathematical phrase with a variable that is raised to the power of 2. Unlike a 1st degree equation, x will have two real values ( R ). The general form for a 2nd degree equation is:

ax2 + bx +c = 0

Where a, b and c are the coefficients for the equation and follow these rules:

a€R*   b€R   c€R

• The Discriminant:

The Discriminant is a expression represented by the Greek letter Delta ( Δ ) that shows which of the three cases apply for the equation:

Delta Δ > 0:

  If Δ is > than 0 => two distinct real roots ( x1,2 ).

Delta Δ = 0:

  If Δ is = to 0 => one distinct real root ( x1 = x2 ).

Delta Δ < 0:

  If Δ is negativ ( Δ < 0 ) => zero real roots ( ∅ ).

• The formula for calculating real roots:

Releases

No releases published

Packages

No packages published