-
Notifications
You must be signed in to change notification settings - Fork 0
/
ConicalRelationsExample.html
43 lines (28 loc) · 1.15 KB
/
ConicalRelationsExample.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
<html>
<script src="ConicalShockRelations.js"></script>
<body>
<hr>
<big><b>Example Conical Shock Relations Output</b></big>
<p> getConeAngle Test: </p>
<p>
<script LANGUAGE="JavaScript">
gamma = 1.4;
m1 = 5.0;
shock_angle = Math.PI/4;
cone_angle = getConeAngle(gamma, m1, shock_angle);
document.write("Cone Angle = " + (cone_angle*180/Math.PI));
</script>
</p>
<p> getShockAngle Test: </p>
<p>
<script LANGUAGE="JavaScript">
gamma = 1.4;
m1 = 5.0;
cone_angle = Math.PI/8;
x = getShockAngle(gamma, m1, cone_angle);
document.write("Shock Angle = " + (x*180/Math.PI));
</script>
</p>
<hr>
</body>
</html>