Data update
This commit is contained in:
parent
8e4e15fa56
commit
72eb4943cb
1853 changed files with 35514 additions and 9441 deletions
5
Task/Map-range/PascalABC.NET/map-range.pas
Normal file
5
Task/Map-range/PascalABC.NET/map-range.pas
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
##
|
||||
function maprange(a, b: (real, real); s: real) := b[0] + (s - a[0]) * (b[1] - b[0]) / (a[1] - a[0]);
|
||||
|
||||
for var i := 0 to 10 do
|
||||
Writeln(i, ' maps to ', maprange((0, 10), (-1, 0), i));
|
||||
Loading…
Add table
Add a link
Reference in a new issue