1 向量
import numpy as np np.array((2,4))
# 2+3 = 5 # 4+1 = 5 V = np.array((2,4)) U = np.array((3,1)) V-U
V = np.array((2,4)) V*1/3
V = np.array((2,4)) U = np.array((3,1)) np.dot(V,U)
# V = [a1,a2,a3] # U = [b1,b2,b3] # P = [a2*b3,a3*b1-a1*b3,a1*b2-a2*b1] V = np.array((1,2,3)) U = np.array((4,5,6)) # V*U 不对 # 2*6-3*5 = -3 np.cross(V,U)
V = np.array((2,4)) U = np.array((3,1)) V*U