1 2 3 4 |
import numpy as np vec_a = np.array([2,0]) vec_b = np.array([0,2]) print(np.linalg.norm(vec_a + vec_b)) |
1 |
2.82842712475 |
1 2 3 4 |
import numpy as np vec_a = np.array([2,0]) vec_b = np.array([0,2]) print(np.linalg.norm(vec_a + vec_b)) |
1 |
2.82842712475 |
コメントを残す