-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
75 lines (75 loc) · 3.16 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
<!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">
<title>Numerical Methods</title>
<link href="css/bootstrap.min.css" rel="stylesheet">
<!--<link href="css/bootstrap-theme.min.css" rel="stylesheet">-->
<link href="css/style.css" rel="stylesheet">
</head>
<body>
<div class="container">
<div class='well well-info text-center'>
<h3>Choose a method to solve the IVP:</h3>
<select class='form-control' id="method" style="margin-left:25%;width:50%;">
<option value="1">Forward Euler Method</option>
<option value="2">Backward Euler Method</option>
<option value="3">Modified Euler method</option>
<option value="4">Euler Cauchy Method</option>
<option value="5">Second Order RK Method</option>
<option value="6">Classical RK Method</option>
<option disabled>==============</option>
<option value="7">Nystrom Central Difference Method</option>
<option value="8">Adam Bashforth Method</option>
<option value="9" disabled>Adam-Moultron Method</option>
<option value="10" disabled>Milne-Simpson Method</option>
<option value="11" disabled>Milne Method</option>
</select>
</div>
<div class="panel panel-success">
<div class="panel-heading"></div>
<div class="panel-body">
<div class="alert alert-danger text-center h4">
y'(x) = ( a<sub>0</sub> + a<sub>1</sub>x + a<sub>2</sub>x<sup>2</sup> + ... + a<sub>n</sub>x<sup>n</sup> ) + (b<sub>0</sub> + b<sub>1</sub>y + b<sub>2</sub>y<sup>2</sup> + ... + b<sub>m</sub>y<sup>m</sup> )<br><br>
x ∈ [a,b]
</div>
<div class="form-group">
<label>a b</label>
<input class="form-control" type="text" id="a-b" placeholder="Input range (Eg: 1 10)" autofocus>
</div>
<div class="form-group">
<label>h</label>
<input class="form-control" type="text" id="h" placeholder="Input step size">
</div>
<div class="form-group">
<label>Y<sub>0</sub></label>
<input class="form-control" type="Number" id="y" placeholder="Enter Initial Value">
</div>
<div class="form-group">
<label>a<sub>0</sub> a<sub>1</sub> a<sub>2</sub> a<sub>3</sub> ...</label>
<input class="form-control" type="text" id="xpoly" placeholder="Enter x coefficients">
</div>
<div class="form-group">
<label>b<sub>0</sub> b<sub>1</sub> b<sub>2</sub> b<sub>3</sub> ...</label>
<input class="form-control" type="text" id="ypoly" placeholder="Enter y coefficients">
</div>
<button class="btn btn-info" onclick="calculate()">Calculate</button>
</div>
</div>
<div id="container" style="min-width: 310px; height:400px; margin:0 auto; display:none;"></div>
<script src="js/jquery.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="https://code.highcharts.com/highcharts.js"></script>
<script src="https://code.highcharts.com/modules/exporting.js"></script>
<script src="js/script.js"></script>
<script>
$("#method").click(function(){
graph_title = $("#method").find("option:selected").text();
$(".panel-heading").html(graph_title);
});
</script>
</div>
</body>
</html>