Skip to content

Instantly share code, notes, and snippets.

@samg11
Created February 16, 2021 06:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save samg11/8c68b7ff06d2489438a0dc5c3614d11e to your computer and use it in GitHub Desktop.
Save samg11/8c68b7ff06d2489438a0dc5c3614d11e to your computer and use it in GitHub Desktop.
Solve With Quadratic Formula Javascript
export const quadraticFormula = (a,b,c) => ([
((-b)+Math.sqrt((b)**2-(4*a*c)))/(2*a),
((-b)-Math.sqrt((b)**2-(4*a*c)))/(2*a)
]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment