Data update

This commit is contained in:
Ingy döt Net 2025-06-11 20:16:52 -04:00
parent 72eb4943cb
commit 4d5544505c
2347 changed files with 62432 additions and 16731 deletions

View file

@ -0,0 +1,13 @@
Program Map(output);
function MapRange(fromRange, toRange: array of real; value: real): real;
begin
MapRange := (value - fromRange[0]) * (toRange[1] - toRange[0]) /
(fromRange[1] - fromRange[0]) + toRange[0];
end;
var
i: integer;
begin
for i := 0 to 10 do
writeln(i: 2, ' maps to: ', MapRange([0.0, 10.0], [-1.0, 0.0], i): 5: 2);
end.