丂丂丂Maple傪妶梡偟偰慄宍戙悢墘嶼傪峴偆偲偒偼丄傑偢
亜 with(linalg): |
亜a:=vector([1,2])
乮儀僋僩儖a=(1,2)丂偺嶌惉) 亜b:=vector([-3,2]) (儀僋僩儖b=(-3,2)丂偺嶌惉) 亜evalm(2丂*丂(a-2丂*丂b)-(3丂*丂a+b)) (2(a-2b)-(3a+b)偺寁嶼) 亜innerprod(a,b) (撪愊a丒b偺寁嶼) 亜innerprod(vector([x,y,z])丂,丂vector([u,v,w])) (撪愊 (x,y,z)丒(u,v,w) 偺寁嶼)
|
[惓夝椺]
亜with(LinearAlgebra) :
|
亜a:=Vector([1,2])
(儀僋僩儖丂a丂=丂(1,2)偺嶌惉) 亜b:=Vector([-3,2]) (儀僋僩儖 b = (-3,2)偺嶌惉) 亜2 * (a-2 * b)-(3 * a+b) (2(a-2b)-(3a+b)偺寁嶼) 亜a丂.丂b (撪愊a丒b偺寁嶼) 亜Vector([x,y,z]) . Vector([u,v,w]) (撪愊丂(x,y,z)丒(u,v,w)丂偺寁嶼)
|
亜a丂.丂b丂丂 |
亜DotProduct (a,b) |
亜DotProduct(a,b,conjugate=false) |
亜Vector([x,y,z])丂.丂Vector([u,v,w])
亜DotProduct丂(Vector丂([x,y,z])丂,丂Vector丂([u,v,w]))丂 亜DotProduct丂(Vector丂([x,y,z])丂,丂Vector丂([u,v,w])丂,丂conjugate=false)丂 |
[惓夝椺]