Data update
This commit is contained in:
parent
5150844a7d
commit
4bb20c9b71
7735 changed files with 38060 additions and 199180 deletions
|
|
@ -1,8 +0,0 @@
|
|||
(defun dot-product (v1 v2)
|
||||
(let ((res 0))
|
||||
(dotimes (i (length v1))
|
||||
(setq res (+ (* (elt v1 i) (elt v2 i)) res)))
|
||||
res))
|
||||
|
||||
(dot-product [1 2 3] [1 2 3]) ;=> 14
|
||||
(dot-product '(1 2 3) '(1 2 3)) ;=> 14
|
||||
Loading…
Add table
Add a link
Reference in a new issue