-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.html
107 lines (105 loc) · 4.05 KB
/
main.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Decomposition</title>
<script src="math.js"></script>
<link rel="stylesheet" href="input.css">
<link rel="stylesheet" href="table.css">
</head>
<body>
<div class="block" style="text-align: center;">
<h1>LU Decomposition</h1>
by Arose Niazi
</div>
<div class="block">
<form autocomplete="on">
<table width="100%">
<tr>
<th colspan="3"><label for="Size">Size of Matrix</label></th>
</tr>
<tr>
<td colspan="3">
<select id="MatSize" name="MatSize">
<option value="2">2 by 2</option>
<option value="3" selected>3 by 3</option>
</select>
</td>
</tr>
<tr>
<th colspan="3"><label>Data</label></th>
</tr>
<tr>
<td><input type="number" name="zby0" id="zby0" placeholder="[1,1]" value="1" required/>
</td>
<td><input type="number" name="zby1" id="zby1" placeholder="[1,2]" value="0" required/>
</td>
<td><input type="number" name="zby2" id="zby2" placeholder="[2,3]" value="0" required/>
</td>
</tr>
<tr>
<td><input type="number" name="oby0" id="oby0" placeholder="[2,1]" value="0" required/>
</td>
<td><input type="number" name="oby1" id="oby1" placeholder="[2,2]" value="1" required/>
</td>
<td><input type="number" name="oby2" id="oby2" placeholder="[2,3]" value="0" required/>
</td>
</tr>
<tr>
<td><input type="number" name="tby0" id="tby0" placeholder="[3,1]" value="0" required/>
</td>
<td><input type="number" name="tby1" id="tby1" placeholder="[3,2]" value="0" required/>
</td>
<td><input type="number" name="tby2" id="tby2" placeholder="[3,3]" value="1" required/>
</td>
</tr>
<tr>
<th colspan="3"><label>B Matrix</label></th>
</tr>
<tr>
<td></td>
<td><input type="text" name="b0" id="b0" placeholder="[0]" value="0" required/>
</td>
<td></td>
</tr>
<tr>
<td></td>
<td><input type="text" name="b1" id="b1" placeholder="[1]" value="0" required/>
</td>
<td></td>
</tr>
<tr>
<td></td>
<td><input type="text" name="b2" id="b2" placeholder="[2]" value="0" required/>
</td>
<td></td>
</tr>
</table>
<label for="Method">Method</label>
<select id="Method" name="Method">
<option value="0">Do Little's</option>
<option value="1">Crout's</option>
</select>
<label for="SolveFurther">Solve Linear Equation</label>
<select id="SolveFurther" name="SolveFurther">
<option value="1">Yes</option>
<option value="0">No</option>
</select>
<input type="button" value="Calculate" onclick="Caculate(Method, SolveFurther)" />
<input type="button" value="Clear output" onclick="clearOutput()" />
</form>
</div>
<br>
<div class="block">
<P id="Output">
</P>
</div>
</body>
<footer>
<script src="Writer.js"></script>
<script src="Runner.js"></script>
<script src="DoLittle.js"></script>
<script src="Crout.js"></script>
<script src="SolveEquation.js"></script>
</footer>
</html>