loom
1import "b.s-ode" :
2b = {
3h : 0.,
4Q1 : 10.,
5a2 : 1.,
6p : 1.,
7g : 1.,
8S : 10.
9}
10
11import "//chart.s-script" : chart
12
13chart.init("Бак")
14chart.addSeries("h", chart.style.line)
15
16import "//scene-fibers.s-script" : scene =
17{
18tk : 1000.0,
19dt : 0.1,
20objects : [b],
21iteration_step : 10,
22callback : fn [chart, b, scene] () {
23chart.addPoint("h", scene.t, b.h)
24}
25}
26
27scene.start()
28
29