Sha256: f315395f32de4fccd9d9eb390180a9d8fb965ed78d1c13eb133a06bd9ecf818c

Contents?: true

Size: 497 Bytes

Versions: 38

Compression:

Stored size: 497 Bytes

Contents

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) 
  }

Version data entries

38 entries across 38 versions & 2 rubygems

Version Path
rouge-4.5.1 lib/rouge/demos/lutin
rouge-4.5.0 lib/rouge/demos/lutin
rouge-4.4.0 lib/rouge/demos/lutin
rouge-4.3.0 lib/rouge/demos/lutin
rouge-4.2.1 lib/rouge/demos/lutin
rouge-4.2.0 lib/rouge/demos/lutin
rouge-4.1.3 lib/rouge/demos/lutin
rouge-4.1.2 lib/rouge/demos/lutin
rouge-4.1.1 lib/rouge/demos/lutin
mumukit-content-type-1.12.1 vendor/bundle/ruby/2.7.0/gems/rouge-3.30.0/lib/rouge/demos/lutin
mumukit-content-type-1.12.0 vendor/bundle/ruby/2.7.0/gems/rouge-3.30.0/lib/rouge/demos/lutin
rouge-4.1.0 lib/rouge/demos/lutin
rouge-4.0.1 lib/rouge/demos/lutin
rouge-4.0.0 lib/rouge/demos/lutin
rouge-3.30.0 lib/rouge/demos/lutin
rouge-3.29.0 lib/rouge/demos/lutin
rouge-3.28.0 lib/rouge/demos/lutin
rouge-3.27.0 lib/rouge/demos/lutin
rouge-3.26.1 lib/rouge/demos/lutin
mumukit-content-type-1.11.1 vendor/bundle/ruby/2.6.0/gems/rouge-3.26.0/lib/rouge/demos/lutin