triple_product.m
来自「包括计算机科学和工程、信号处理、物理学、应用数学和统计学」· M 代码 · 共 6 行
M
6 行
% triple product of three vectors (a x b) c
% corresponds to the volume spanned by them
function[volume] = triple_product(a,b,c)
volume = c(1)*(a(2)*b(3) - b(2)*a(3)) + c(2)*(a(3)*b(1) - b(3)*a(1)) + ...
c(3)*(a(1)*b(2) - b(1)*a(2));
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?