-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
54 lines (47 loc) · 1.56 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Quadratic Equation Solver</title>
<link type="text/css" rel="stylesheet" href="styles.css">
<script type="text/javascript" src="script.js"></script>
<!-- MathJax -->
<script src='https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
tex2jax: { inlineMath: [['$','$'], ['\\(','\\)']] },
});
</script>
</head>
<body onload="QS.setup()">
<div class="center">
<h1 class="title">Quadratic Equation Solver</h1>
<div class="info">
<h1 class="help-header">Help</h1>
<p>
This program solves quadratic equations of the format:
$$ax^2 + bx + c = 0$$
Then it solves it using the formula:
$$x = \frac{-b \pm \sqrt{b^2-4ac}}{2a}$$
To get to this format use normal algebraic techniques. If you do not know how to do this, consult a book on the
subject.<br>
</p>
</div>
<label for="a">a:</label>
<input type="number" step="any" id="a" value="0">
<br>
<label for="a">b:</label>
<input type="number" step="any" id="b" value="0">
<br>
<label for="c">c:</label>
<input type="number" step="any" id="c" value="0">
<br>
<br>
<div id="answer"></div>
<div class="copyright-footer">
Copyright © 2021 Sumner Evans | MIT License | Version 2.0 |
<a href="https://github.com/sumnerevans/quadratic-solver">View on GitHub</a>
</div>
</div>
</body>
</html>