diff options
Diffstat (limited to '24/DEPENDENCIES/cross_product.sci')
-rwxr-xr-x | 24/DEPENDENCIES/cross_product.sci | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/24/DEPENDENCIES/cross_product.sci b/24/DEPENDENCIES/cross_product.sci new file mode 100755 index 000000000..c00b7ebdf --- /dev/null +++ b/24/DEPENDENCIES/cross_product.sci @@ -0,0 +1,6 @@ +//Vector Product of two given vectors
+function [val] = crossproduct(A, B)
+ val = [A(2) * B(3) - A(3) * B(2),
+ A(3) * B(1) - A(1) * B(3),
+ A(1) * B(2) - A(2) * B(1)]
+endfunction
\ No newline at end of file |