[CT4101]: Add Topic 2 Examples

This commit is contained in:
2024-09-29 06:45:09 +01:00
parent 90824b5e03
commit 7a1f9943fc
8 changed files with 586 additions and 0 deletions

View File

@ -0,0 +1,5 @@
import numpy as np
a = np.array((1, 2))
b = np.array((3, 4))
dist = np.linalg.norm(a-b)
print("The distance is:", dist)