Add tasks for all the new languages
This commit is contained in:
parent
9dc3c2bb62
commit
bba7bfd280
13208 changed files with 134745 additions and 0 deletions
7
Task/Map-range/Phix/map-range.phix
Normal file
7
Task/Map-range/Phix/map-range.phix
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
function MapRange(atom s, a1, a2, b1, b2)
|
||||
return b1+(s-a1)*(b2-b1)/(a2-a1)
|
||||
end function
|
||||
|
||||
for i=0 to 10 by 2 do
|
||||
printf(1,"%2d : %g\n",{i,MapRange(i,0,10,-1,0)})
|
||||
end for
|
||||
Loading…
Add table
Add a link
Reference in a new issue