-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsim_ellipse.htm
74 lines (54 loc) · 2.01 KB
/
sim_ellipse.htm
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>SIMULATION:UNIFORM ACCELARATION</title>
<meta name="description" content="Uniform acceleration simulatiuon">
<meta name="keywords" content="HSC Physics, Motion, Vertical motion, uniform acceleration, physics simulations">
<meta name="keywords" content="physics simulations with canvas">
<meta name="author" content="Ian Cooper">
<link rel="stylesheet" type = "text/css" href="style_001.css" />
<style> #myCanvas
{
border: 1px solid black;
display : block;
margin : auto;
}
</style>
<style> .s4
color : blue;
/* unvisited link */
a:link {color: blue;}
/* visited link */
a:visited {color: blue;}
/* mouse over link */
a:hover {color: #FF00FF; background-color: #ffd9d9;}
/* selected link */
a:active {color: #0000FF;}
a {text-decoration: none; color: #000000}
</style>
<script src="sim_ellipse.js"> </script>
</head>
<body onload="init();">
<p></p>
<br>
<section class = "s5" align = "center">
<a class = "s4" href = "http://www.physics.usyd.edu.au/teach_res/hsp/math/graphs_02.pdf">    Ellipses and Circles</a>
<br>
<div style ="font-size:18px">
<p style = "padding-left:20px">The equation of an ellipse can be written as</p>
<p style = "padding-left:20px">x<sup>2</sup> / a<sup>2</sup> + y<sup>2</sup> / b<sup>2</sup> = 1 </p>
<p style = "padding-left:20px">Predict the changes in the shape of ellipse by changing the values of a and b by using the INCREMENT BUTTONS</p>
</div>
<canvas id="myCanvas" width="800" height="500">
Your browser does not support the canvas tag.
</canvas>
</section>
<div style ="font-size:20px" align = "center">
<p></p>
<INPUT style="font-size:24px" TYPE ="Button" VALUE=" increment a " align = "centre" onClick="inc_a()">
   
<INPUT style="font-size:24px" TYPE ="Button" VALUE=" increment b " onClick="inc_b()">
</div>
</body>
</html>