MCPcopy Index your code
hub / github.com/geekcomputers/Python / eulidLength

Method eulidLength

linear-algebra-python/src/lib.py:97–104  ·  view source on GitHub ↗

returns the eulidean length of the vector

(self)

Source from the content-addressed store, hash-verified

95 return len(self.__components)
96
97 def eulidLength(self):
98 """
99 returns the eulidean length of the vector
100 """
101 summe = 0
102 for c in self.__components:
103 summe += c**2
104 return math.sqrt(summe)
105
106 def __add__(self, other):
107 """

Callers 2

test_euclidLengthMethod · 0.95
normMethod · 0.95

Calls

no outgoing calls

Tested by 1

test_euclidLengthMethod · 0.76