loom
1import "models/lorenz.s-ode" :
2l = {
3sigma : 10.0,
4b : 8.0/3,
5R : 28.0,
6
7x : 10.0,
8y : 1.0,
9z : 1.0,
10}
11
12import "//chart.s-script" : chart
13
14chart.init("Lorenz System")
15chart.addSeries("x-y", chart.style.line)
16chart.addSeries("x-z", chart.style.line)
17
18import "modules/scene-fibers.s-script" : scene =
19{
20tk : 50.0,
21dt : 0.01,
22objects : [l],
23iteration_step : 2,
24callback : fn [chart, l] () {
25chart.addPoint("x-y", l.x, l.y)
26chart.addPoint("x-z", l.x, l.z)
27}
28}
29
30scene.start()
31