문제 풀이
(1)
=[(((-13)×(-14))-(8×11)), ((8×(-2))-(5×(-14))), ((5×11)-((-13)×(-2)))]
=[(182-88), ((-16)-(-70)), (55-26)]
=[94, 54, 29]
In [43]:
import numpy as np a = np.array([5, -13, 8]) b = np.array([-2, 11, -14]) print(np.cross(a,b))
[94 54 29]
(2)
= [((8×2)-((-16)×(-5))), (((-16)×(-8))-((-7)×2)), (((-7)×(-5))-(-8×(-8)))]
= [(16-80), (128-(-14)), (35-(-64))]
= [-64, 142, 99]
In [44]:
import numpy as np a = np.array([-7, 8, -16]) b = np.array([-8, -5, 2]) print(np.cross(a,b))
[-64 142 99]