Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python compute cross product

import numpy as np

#define vectors
A = np.array([1, 2, 3])
B = np.array([4, 5, 6])
  
#calculate cross product of vectors A and B
np.cross(A, B)

[-3, 6, -3]
 
PREVIOUS NEXT
Tagged: #python #compute #cross #product
ADD COMMENT
Topic
Name
7+9 =