loom
1use "scriptc-ex09.sc0" ("scriptc0") as type LorenzSystem;
2
3LorenzSystem LS;
4
5LS.sigma = 10;
6LS.b = 8/3;
7LS.R = 28;
8
9LS.x = 10;
10LS.y = 1;
11LS.z = 1;
12
13void onShow()
14{
15sys.print("" + scene.t() + " " + LS.x + " " + LS.y + " " + LS.z);
16}
17
18scene.setIterationCallback(onShow, 100);
19scene.setT(0.0);
20scene.setTk(25.0);
21scene.setDt(0.01);
22
23scene.add(LS);
24
25scene.start();
26