Created
February 16, 2021 06:47
-
-
Save samg11/8c68b7ff06d2489438a0dc5c3614d11e to your computer and use it in GitHub Desktop.
Solve With Quadratic Formula Javascript
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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