loom
31 строка · 480.0 Байт
1use "diff/LorenzSystem.diff" as type LorenzSystem;
2
3LorenzSystem LS = {
4sigma : 10.0,
5b : 8.0/3,
6R : 28.0,
7
8x : 10.0,
9y : 1.0,
10z : 1.0,
11};
12
13string s1 = "x-y projection";
14string s2 = "x-z projection";
15
16chart.init("Lorenz System");
17
18void onShow()
19{
20chart.addPoint(s1, LS.x, LS.y);
21chart.addPoint(s2, LS.x, LS.z);
22}
23
24scene.setIterationCallback(onShow, 1);
25scene.setT(0.0);
26scene.setTk(50.0);
27scene.setDt(0.01);
28
29scene.add(LS);
30
31scene.start();
32