Initial data commit

This commit is contained in:
Ingy döt Net 2023-07-01 11:58:00 -04:00
parent 72d218235f
commit f23f22d71c
199087 changed files with 3378941 additions and 0 deletions

View file

@ -0,0 +1 @@
cross=: (1&|.@[ * 2&|.@]) - 2&|.@[ * 1&|.@]

View file

@ -0,0 +1 @@
cross=: {{ ((1|.x)*2|.y) - (2|.x)*1|.y }}

View file

@ -0,0 +1,3 @@
CT=: C.!.2 @ (#:i.) @ $~
ip=: +/ .* NB. inner product
cross=: ] ip CT@#@[ ip [

View file

@ -0,0 +1 @@
cross=: [: > [: -&.>/ .(*&.>) (<"1=i.3) , ,:&:(<"0)

View file

@ -0,0 +1 @@
cross=: {{ >-L:0/ .(*L:0) (<"1=i.3), x,:&:(<"0) y}}

View file

@ -0,0 +1,12 @@
a=: 3 4 5
b=: 4 3 5
c=: -5 12 13
A=: 0 {:: ] NB. contents of the first box on the right
B=: 1 {:: ] NB. contents of the second box on the right
C=: 2 {:: ] NB. contents of the third box on the right
dotP=: A ip B
crossP=: A cross B
scTriP=: A ip B cross C
veTriP=: A cross B cross C

View file

@ -0,0 +1,8 @@
dotP a;b
49
crossP a;b
5 5 _7
scTriP a;b;c
6
veTriP a;b;c
_267 204 _3