-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
51 lines (51 loc) · 1.72 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title></title>
<script src="./build/Fouricle.js"></script>
<link rel="stylesheet" href="./main.css">
</head>
<body>
<p>
Written in haskell (code <a href="https://github.com/lesguillemets/fouricle">here</a>) and compiled with
<a href="https://github.com/valderman/haste-compiler">Haste-compiler</a> (v.0.5.0) (updated!).
</p>
<div class="container" id="canvContainer">
<canvas id="canv0" width="1000" height="500"></canvas>
<canvas id="canv1" width="1000" height="500"></canvas>
</div>
<div class="container">
<div class="options">
<p>
Display
<select id="series" name="series">
<option value="rectangular" selected="true">Rectangular</option>
<option value="triangular">Triangular</option>
<option value="sawTooth">SawTooth</option>
<option value="leafy">leafy</option>
<option value="wavy">wavy</option>
<option value="play0">play0</option>
<option value="play1">play1</option>
</select>
wave using first <input id="nth" type="number" min="1" step="1" value="15"> terms (upto the term a<sub>n</sub>sin(nθ)).
</p>
<p>
speed *
<input id="speed" type="number" min="0.001" step="0.1" value=1>
</p>
</div>
</div>
<div>
<ul>
<li>Rectangular : a<sub>n</sub> = 1/n if n is even else 0</li>
<li>Triangle : 1, 0, -1/9, 0, 1/25,... </li>
<li>sawTooth : 1/n</li>
<li>leafy : Im( i<sup>n</sup>) / ((n+1) log (n+1))</li>
<li>wavy : 1/ n log(n)</li>
<li>play0: (-1)<sup>n</sup> / log (n)</li>
<li>play1 :: 1 / n (when n = 7k+1) </li>
</ul>
</div>
</body>
</html>