A-M baby
This commit is contained in:
parent
764da6cbbb
commit
db842d013d
19005 changed files with 197040 additions and 7 deletions
6
Task/Map-range/Emacs-Lisp/map-range.l
Normal file
6
Task/Map-range/Emacs-Lisp/map-range.l
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
(defun maprange (a1 a2 b1 b2 s)
|
||||
(+ b1 (/ (* (- s a1) (- b2 b1)) (- a2 a1))))
|
||||
|
||||
(dotimes (i 10)
|
||||
(princ (maprange 0.0 10.0 -1.0 0.0 i))
|
||||
(terpri))
|
||||
Loading…
Add table
Add a link
Reference in a new issue