3d-dart/server/system/NAfunctionLib.py
def CalculateDistance(vector1,vector2):
	
	"""Calculate the distance between two vectors"""
	
	d= float(0)
	
	if len(vector1) == len(vector2):
		for i in range(len(vector1)):
			d=d+(vector1[i]-vector2[i])**2
		d=math.sqrt(d)
 		return d
	else:
		return None
Calculate the distance between two vectors
Calculate the distance between two vectors
Calculate the distance between two vectors
def CalculateDistance(vector1,vector2):
	d= float(0)
	if len(vector1) == len(vector2):
		for i in range(len(vector1)):
			d=d+(vector1[i]-vector2[i])**2
		d=math.sqrt(d)
 		return d
	else:
		return None
def CalculateDistance ( vector1 , vector2 ) : d = float ( 0 ) if len ( vector1 ) == len ( vector2 ) : for i in range ( len ( vector1 ) ) : d = d + ( vector1 [ i ] - vector2 [ i ] ) ** 2 d = math . sqrt ( d ) return d else : return None
Calculate the distance between two vectors
Calculate the distance between two vectors
"""Calculate the distance between two vectors"""
vector1
vector2