Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
141
def
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
AutumnPastels
Function · 0.70
FracDown
Function · 0.70
Calls
1
atan
Function · 0.85
Tested by
no test coverage detected