Anonymous user
Map range: Difference between revisions
Changed to a function
m (J: add comments) |
(Changed to a function) |
||
Line 115:
{{incorrect|PicoLisp|Task asks for a generic function of two input ranges and a value.}}
<lang PicoLisp>(scl 1)
(de
(prinl▼
▲ (+ B1 (*/ (- Val A1) (- B2 B1) (- A2 A1)))
(for Val (range 0 10.0 1.0)
*Scl ) ) ) )</lang>▼
Output:
<pre>-1.0
|