G9 Logistic Function

The logistic curve is much more recognizable than its formula. wikipedia See G9 Demos

const initialData = { k:1 } const exp = Math.exp const render = ({k}, c) => { c.text('k = '+k.toFixed(2),-120,-50) for (let x=-100; x<100; x++) { const f = x => 1 / (1 + exp(-k*3*x)) const fill = (x+100)%10<5?'black':'red' c.point(2*x, -100*f(x/20)+50, {fill}) } }

http://ward.dojo.fed.wiki/assets/pages/g9-demos/run-g9.html HEIGHT 160