norm complex numpy
#c is a complex number
np.linalg.norm(c)
#or
np.absolute(c)
norm complex numpy
#c is a complex number
np.linalg.norm(c)
#or
np.absolute(c)
using np.linalg.norm to get vector norm of two vectors
A = np.array([2,3])
B = np.array([3,1])
print(f"A = {A}, B = {B}n")
AB = B - A
print(f"vector AB = {AB}n")
d_AB = np.linalg.norm(AB)
print(f"distance AB = {d_AB}")
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us