MCPcopy Create free account
hub / github.com/ActiveState/code / ZeroToOne

Function ZeroToOne

recipes/Python/578044_Fractal_painter/recipe-578044.py:141–145  ·  view source on GitHub ↗
(nM, nSpan)

Source from the content-addressed store, hash-verified

139
140
141def ZeroToOne(nM, nSpan):
142
143 # maps the Real domain onto [0 , 1]
144
145 return atan(nM * nSpan) / pi + 0.5
146
147
148

Callers 2

AutumnPastelsFunction · 0.70
FracDownFunction · 0.70

Calls 1

atanFunction · 0.85

Tested by

no test coverage detected