Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
13
Task/Map-range/Bracmat/map-range.bracmat
Normal file
13
Task/Map-range/Bracmat/map-range.bracmat
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
( ( mapRange
|
||||
= a1,a2,b1,b2,s
|
||||
. !arg:(?a1,?a2.?b1,?b2.?s)
|
||||
& !b1+(!s+-1*!a1)*(!b2+-1*!b1)*(!a2+-1*!a1)^-1
|
||||
)
|
||||
& out$"Mapping [0,10] to [-1,0] at intervals of 1:"
|
||||
& 0:?n
|
||||
& whl
|
||||
' ( !n:~>10
|
||||
& out$("f(" !n ") = " flt$(mapRange$(0,10.-1,0.!n),2))
|
||||
& 1+!n:?n
|
||||
)
|
||||
);
|
||||
Loading…
Add table
Add a link
Reference in a new issue