HTML5 CODE

Algebra is the foundation of Mathematics

2 POINTS SOLVER

Preview of point solver code output
Note: The image above is a preview showing how the code will look when executed.
Please click the image to download the complete JavaScript and HTML5 code. You can run and test it in any modern web browser.

Choose two points: (x₁, y₁) and (x₂, y₂), then let the tool calculate:
  • Slope of the line
  • x-intercept
  • y-intercept
  • Midpoint between the two points
  • Distance between the two points
  • Full equation of the line in slope-intercept form


2 LINES SOLVER

Preview of 2-point line solver output
Note: The image above is a preview showing how the code will look when executed.
Please click the image to download the complete JavaScript and HTML5 code. You can run and test it in any modern web browser.

This interactive tool lets you enter two points for:
  • Line 1: (x₁, y₁) and (x₂, y₂)
  • Line 2: (x₃, y₃) and (x₄, y₄)
After clicking the Solve button, it will calculate and display:
  • Slope and equation of Line 1
  • Slope and equation of Line 2
  • Point of intersection between Line 1 and Line 2 (if it exists)
  • x-intercept and y-intercept of Line 1

CUBIC SOLVER

Preview of cubic equation solver output
Note: The image above is a preview showing how the code will look when executed.
Please click the image to download the complete JavaScript and HTML5 code. You can run and test it in any modern web browser.

This tool helps you solve a **cubic equation** by entering the coefficients: A, B, and C.

It calculates all possible roots of the equation, including:
  • Real roots
  • Complex roots (with real ± imaginary components, e.g., x₁ = a + bi)
  • Displays all three solutions clearly
  • Explains how imaginary numbers affect the curve shape


QUADRATIC SOLVER

Preview of quadratic equation solver
Note: The image above is a preview showing how the code will look when executed.
Please click the image to download the complete JavaScript and HTML5 code. You can run and test it in any modern web browser.

This interactive tool allows you to work with **quadratic equations** in two ways:
  • Option 1: Enter coefficients A, B, and C to solve for the roots x₁ and x₂
  • Option 2: Enter known roots x₁ and x₂ to calculate the full quadratic equation in the form y = Ax² + Bx + C
The tool displays:
  • Real or complex roots (with imaginary parts if needed)
  • Complete quadratic formula
  • Optionally includes a visual graph of the curve