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,14 @@
function mapRange(
a: number[],
b: number[],
s: number
): number {
return b[0] + (s-a[0]) * (b[1]-b[0]) / (a[1]-a[0]);
}
const a = [0, 10];
const b = [-1, 0];
for (let s = 0; s < 11; s++) {
console.log(`${s} -> ${mapRange(a, b, s)}`);
}