Add tasks for all the new languages
This commit is contained in:
parent
9dc3c2bb62
commit
bba7bfd280
13208 changed files with 134745 additions and 0 deletions
10
Task/Dot-product/EchoLisp/dot-product.echolisp
Normal file
10
Task/Dot-product/EchoLisp/dot-product.echolisp
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
(define a #(1 3 -5))
|
||||
(define b #(4 -2 -1))
|
||||
|
||||
;; function definition
|
||||
(define ( ⊗ a b) (for/sum ((x a)(y b)) (* x y)))
|
||||
(⊗ a b) → 3
|
||||
|
||||
;; library
|
||||
(lib 'math)
|
||||
(dot-product a b) → 3
|
||||
Loading…
Add table
Add a link
Reference in a new issue