-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathassignment-02.html
More file actions
53 lines (46 loc) · 1.94 KB
/
assignment-02.html
File metadata and controls
53 lines (46 loc) · 1.94 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<title>LDU Factorization Calculator</title>
<link rel="stylesheet" href="assignment-02.css">
</head>
<body>
<div class="theory">
<h1>LDU Factorization</h1>
<p>
LDU Factorization decomposes a square matrix ( A ) into three matrices:
</p>
<ul>
<li><b>L</b>: Lower triangular matrix with ones on the diagonal.</li>
<li><b>D</b>: Diagonal matrix with pivot elements of ( A ).</li>
<li><b>U</b>: Upper triangular matrix with ones on the diagonal.</li>
</ul>
<p>
This gives ( A = L D U ), simplifying linear systems and matrix inversion.
</p>
</div>
<div class="container">
<h1><u>LDU Factorization Calculator</u></h1>
<div class="calculator">
<label for="dimension">Enter a order of matrix:</label>
<input type="text" id="dimension" min="1" >
<button onclick="generateMatrix()">Generate Matrix</button>
<div id="matrixInputs"></div>
<button class="box" onclick="calculateL()">Calculate L</button>
<button class="box" onclick="calculateD()">Calculate D</button>
<button class="box" onclick="calculateU()">Calculate U</button>
<div id="result"></div>
<button onclick="showCalculationSteps()">Show Calculation Steps</button>
</div>
</div>
<div class="Application">
<h2>Applications</h2>
<ul>
<li>Solving linear systems by breaking into simpler steps.</li>
<li>Finding matrix determinants as the product of diagonal entries in ( D ).</li>
<li>Calculating matrix inverses by inverting ( L ), ( D ), and ( U ) matrices.</li>
</ul>
</div>
<script src="#"></script>
</body>
</html>