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
21
Task/Vector-products/Wortel/vector-products.wortel
Normal file
21
Task/Vector-products/Wortel/vector-products.wortel
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
@let {
|
||||
dot &[a b] @sum @mapm ^* [a b]
|
||||
cross &[a b] [[
|
||||
-*a.1 b.2 *a.2 b.1
|
||||
-*a.2 b.0 *a.0 b.2
|
||||
-*a.0 b.1 *a.1 b.0
|
||||
]]
|
||||
scalarTripleProduct &[a b c] !!dot a !!cross b c
|
||||
vectorTripleProduct &[a b c] !!cross a !!cross b c
|
||||
|
||||
a [3 4 5]
|
||||
b [4 3 5]
|
||||
c [5N 12N 13N]
|
||||
|
||||
[[
|
||||
!!dot a b
|
||||
!!cross a b
|
||||
@!scalarTripleProduct [a b c]
|
||||
@!vectorTripleProduct [a b c]
|
||||
]]
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue