-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
107 lines (98 loc) · 3.94 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
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>
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="Simple VGA core sim used in CPEN 311">
<meta name="author" content="Muchen He">
<title>RHCalc</title>
<!-- css -->
<link href="https://fonts.googleapis.com/css?family=Open+Sans:300,400" rel="stylesheet">
<link type="text/css" rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css">
<link type="text/css" rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" />
<!-- js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script>
<script src="rhcalc.js"></script>
<style>
body { font-family: "Open Sans", "Segoe UI", sans-serif; }
h1 { font-weight: 100; font-size: 3em; }
.container { margin-top: 20px; }
.coeff-input { width: 4em; }
.table-matrix { margin-left: auto; margin-right: auto; border: 1px solid #EEE; text-align: center; }
.table-matrix td { padding: 0.3em 1em; }
.card { margin-bottom: 2em; }
.sup-dense { top: .5em; }
</style>
</head>
<body>
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<a href="#" class="navbar-brand">RHCalc</a>
<ul class="navbar-nav mr-auto">
<li role="nav-item">
<a class="nav-link" href="/">Made with ⚡ by Muchen He</a>
</li>
</ul>
<span class="navbar-text">
Documentation coming soon<sup>TM</sup>
</span>
</nav>
<!-- main content -->
<div class="container">
<header>
<h1>Routh Hurwitz Stability Criterion Calculator</h1>
<p>I learned about this in ELEC 341, the systems and controls class.</p>
<hr>
</header>
<div class="card">
<div class="card-header">
<h3>Transfer Function</h3>
</div>
<div class="card-body">
<h5 class="card-title">System Order</h5>
<div class="input-group">
<input id="sys-order" class="coeff-input" type="number" min="1" max="8" value="1" oninput="systemOrderChangeEvent()">
<span id="sys-order-text">-th</span>
<span> order system</span>
</div>
<hr>
<h5 class="card-title">Characteristic Equation (Closed Loop Denominator)</h5>
<div id="denom_input" class="input-group">
<input id="denom_coeff_1" class="coeff-input" type="number" value="0">
<span><i>s</i>+</span>
<input id="denom_coeff_0"class="coeff-input" type="number" value="1">
</div>
</div>
<div class="card-footer">
<button id="compute-rh" class="btn btn-sm btn-outline-primary">Go!</button>
</div>
</div>
<div id="rh-matrix-card" class="card">
<div class="card-header">
<h3>Matrix</h3>
</div>
<div class="card-body">
<table id="rh-matrix" class="table-matrix">
</table>
</div>
</div>
<div id="result-card" class="card">
<div class="card-header">
<h3>Result</h3>
</div>
<div class="card-body">
<!-- <p id="stable_result"></p> -->
<div id="stable_result" class="alert alert-success" role="alert">
</div>
</div>
</div>
<footer>
<small>
This work is licensed under a
<a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/">Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License</a>.
</small>
</footer>
</div>
</body>