-
Notifications
You must be signed in to change notification settings - Fork 0
/
dplot.htm
101 lines (97 loc) · 2.83 KB
/
dplot.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
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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Plotter</title>
<script src = "plot.js">
</script>
<script src = "eplot.js">
</script>
<script>
click=clickxy;
plot=dplot;
</script>
<link rel="stylesheet" href="s1.css">
</head>
<body>
<select id="gt">
<option value="0">grid off</option>
<option value="1" selected>grid on</option>
<option value="2">fine grid</option>
<option value="-1">nothing</option>
</select>
<select id="spsx">
<option value="1">left</option>
<option value="2" selected>middle</option>
<option value="3">right</option>
<option value="4">manual</option>
</select>
<select id="spsy">
<option value="1">top</option>
<option value="2" selected>middle</option>
<option value="3">bottom</option>
<option value="4">manual</option>
</select>
<br><br><br>
<canvas id="canvas1" width="720" height="480"
style="border: thin solid gray">
No canvas.
</canvas>
<div class="nb">
<input type="button" value="plot"
onclick="dplot()">
<input type="button" value="<"
onclick="shiftam(); dplot()">
<input type="button" value=">"
onclick="shiftap(); dplot()">
 <span id="xy" class="mono"></span>
<br><br>
<span id="yn">y1 = </span><input type="text" id="input1" style="width: 600px"
onkeyup="handle_keys(event);"><br>
f(x) = <input type="text" id="inputf" style="width: 600px"
onkeyup="handle_keys(event);"><br>
<br>
<table><tr><td>
px = <input type="text" id="inputx" value="0"><br>
py = <input type="text" id="inputy" value="0"><br>
wx = <input type="text" id="inputwx" value="10"><br>
wy = <input type="text" id="inputwy" value="10">
</td><td style="padding-left: 2em">
a = <input type="text" id="inputa" value="0"><br>
d = <input type="text" id="inputd" value="1"><br>
m = <input type="text" id="inputm" value="1000"><br>
h = <input type="text" id="inputh" value="0.01">
</td></tr>
</table>
<br>
<input type="button" value="set" onclick="setn()">
n = <input type="text" id="inputn" value="1">
<br><br>
<table><tr><td>
x0 = <input type="text" id="inputx0" value="0"><br>
y(x0) = <input type="text" id="inputy0" value="0"><br>
y1(x0) = <input type="text" id="inputy10" value="0"><br>
y2(x0) = <input type="text" id="inputy20" value="0"><br>
y3(x0) = <input type="text" id="inputy30" value="0">
</td><td style="padding-left: 2em">
y4(x0) = <input type="text" id="inputy40" value="0"><br>
y5(x0) = <input type="text" id="inputy50" value="0"><br>
y6(x0) = <input type="text" id="inputy60" value="0"><br>
y7(x0) = <input type="text" id="inputy70" value="0"><br>
y8(x0) = <input type="text" id="inputy80" value="0">
</td></tr>
</table>
<br>
<a href="doc.htm" class="modest">help</a>
(<a href="doc-de.htm" class="modest">Hilfe</a>)
<br><br>
<input type="button" value="calc" onclick="calc()">
<input type="text" id="inputc" style="width:400px"
onkeyup="calc_keys(event);">
<br>
<p id="ans" class="mono">ans =</p>
<br><br>
<br>
</div>
</body>
</html>