-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
66 lines (39 loc) · 1.5 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
<html>
<head>
<!-- tembak langsung ke web -->
<script src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=AM_HTMLorMML-full"> </script>
<!-- ini kalo mo download library Mathjax
<script src="mathjax/MathJax.js?config=AM_HTMLorMML-full"></script>
-->
<link rel="stylesheet" type="text/css" href="jsxgraph.css" />
<script type="text/javascript" src="jsxgraphcore.js"></script>
<script src="Date.js" type="text/javascript"></script>
<script src="Stack.js" type="text/javascript"></script>
<script src="Tokanizer.js" type="text/javascript"></script>
<script src="Evaluator.js" type="text/javascript"></script>
<script src="jquery-1.11.1.min.js"></script>
<script src="jquery.json-2.4.min.js"></script>
<script src="introjs/intro.js"></script>
<script src="metnum.js"></script>
</script>
</head>
<body>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
Compute Integral using Simpson 1/3 with n = 2,4,6,8,...
<br/>
` \int_{x_0}^{x_n} F(x) dx approx I =h/3 [F(x_0) + 4\sum_{i=1,3,5,...,n-1} F(X_i) + 2\sum_{i=2,4,6,...,n-2} F(X_i)+ F(x_n)] , h= (x_n-x_0)/n`
<br/>
<br/>Input:<br/>
`F(x)=`<input type="text" name="txtExp" id="fx">
`x_0=`<input type="text" name="x1" size="1" id="x1">
`x_n=`<input type="text" name="x2" size="1" id="x2">
`n=`<input type="text" size="1" id="n">
<br>
<button id="btnSubmit" > Submit </button>
<p id ="hasilh"> <p>
<p id="hasilfx"></p>
<p id="hasil"> </p>
<div id="box" class="jxgbox" style="width:700px; height:400px;">
</div>
</body>
</html>