문제 풀이
(1) - = (-7, 15) - (-9, 4)
= ((-7) - (-9), 15 - 4) = (2, 11)
In [26]:
import numpy as np x = [-7,15] y = [-9,4] u = np.array(x) v = np.array(y) w = u-v print(w)
[ 2 11]
(2) - = (-11, 6) - (-8, 14)
= ((-11) - 8, 6 - (-14)) = (-19, 20)
In [27]:
import numpy as np x = [-11,6] y = [8,-14] u = np.array(x) v = np.array(y) w = u-v print(w)
[-19 20]
(3) - = (-11, 14) - (-19, -21)
= ((-11) - (-19), 14 - (-21)) = (8, 35)
In [28]:
import numpy as np x = [-11,14] y = [-19,-21] u = np.array(x) v = np.array(y) w = u-v print(w)
[ 8 35]