-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
47 lines (47 loc) · 3.01 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Gaussian Elimination</title>
<link rel="stylesheet" href="style.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap" rel="stylesheet">
<script src="https://cdnjs.cloudflare.com/ajax/libs/mathjs/11.8.0/math.js" integrity="sha512-VW8/i4IZkHxdD8OlqNdF7fGn3ba0+lYqag+Uy4cG6BtJ/LIr8t23s/vls70pQ41UasHH0tL57GQfKDApqc9izA==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
</head>
<body class="dark-mode">
<header>
<h1 id="title">Gaussian Elimination</h1>
<button id="color-mode" class="dark-mode">Light Mode</button>
</header>
<main>
<div id="system-container">
<label for="x1-input" id="x1">x</label> <label for="y1-input" id="y1">y</label> <label for="z1-input" id="z1">z</label>
<input type="text" name="x1" id="x1-input"><input type="text" name="y1" id="y1-input"><input type="text" name="z1-input" id="z1-input"><p id="e1">=</p><input type="text" name="a1" id="a1">
<label for="x2-input" id="x2">x</label> <label for="y2-input" id="y2">y</label> <label for="z2-input" id="z2">z</label>
<input type="text" name="x2" id="x2-input"><input type="text" name="y2" id="y2-input"><input type="text" name="z2-input" id="z2-input"><p id="e2">=</p><input type="text" name="a2" id="a2">
<label for="x3-input" id="x3">x</label> <label for="y3-input" id="y3">y</label> <label for="z3-input" id="z3">z</label>
<input type="text" name="x3" id="x3-input"><input type="text" name="y3" id="y3-input"><input type="text" name="z3-input" id="z3-input"><p id="e3">=</p><input type="text" name="a3" id="a3">
</div>
<script src="grid-setup.js"></script>
<div id="result-container">
<h1>Row Echelon Form</h1>
<div id="row-echelon-container">
<p class="row-echelon-value">0</p><p class="row-echelon-value">0</p><p class="row-echelon-value third-value">0</p><p class="row-echelon-value">0</p>
<p class="row-echelon-value">0</p><p class="row-echelon-value">0</p><p class="row-echelon-value third-value">0</p><p class="row-echelon-value">0</p>
<p class="row-echelon-value">0</p><p class="row-echelon-value">0</p><p class="row-echelon-value third-value">0</p><p class="row-echelon-value">0</p>
</div>
<div id="solution-container">
<div id="x">x = ?</div>
<div id="y">y = ?</div>
<div id="z">z = ?</div>
</div>
<div id="unsolvable-message">No solution<br>or<br>Infinite solutions</div>
</div>
</main>
<script src="matrix.js"></script>
<script src="index.js"></script>
</body>
</html>