Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
13
Task/Map-range/Ring/map-range.ring
Normal file
13
Task/Map-range/Ring/map-range.ring
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
# Project : Map range
|
||||
|
||||
decimals(1)
|
||||
al = 0
|
||||
ah = 10
|
||||
bl = -1
|
||||
bh = 0
|
||||
for n = 0 to 10
|
||||
see "" + n + " maps to " + maprange(al, bl, n) + nl
|
||||
next
|
||||
|
||||
func maprange(al, bl, s)
|
||||
return bl + (s - al) * (bh - bl) / (ah - al)
|
||||
Loading…
Add table
Add a link
Reference in a new issue