Files
news.gitea.happylizard.me/bin/gems/rouge-4.5.1/lib/rouge/demos/lutin
T
pizza2d1 4cee170d66
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 9s
Add bin and edit workflow
2026-09-16 13:11:16 -06:00

19 lines
497 B
Plaintext

node gen_x_v1() returns (x:real) = loop 0.0<x and x<42.0
node gen_x_v2() returns (x:real) =
loop { 0.0<x and x<42.0 fby loop [20] x = pre x }
node gen_x_v3() returns (target:real; x:real=0.0) =
run target := gen_x_v2() in
loop { x = (pre x + target) / 2.0 }
let inertia=0.6
node gen_x_v4() returns (target:real; x:real=0.0) =
run target := gen_x_v2() in
exist px,ppx : real = 0.0 in
loop {
px = pre x and ppx = pre px and
x = (px+target) / 2.0+inertia*(px-ppx)
}