Out of order but localized

This commit is contained in:
lukew3
2020-10-19 20:33:18 -04:00
parent 5f2a5ab236
commit 84cb84a21c
83 changed files with 395 additions and 241 deletions

View File

@@ -7,3 +7,8 @@ def euclidianNormFunc(maxEltAmt=20):
problem = f"Euclidian norm or L2 norm of the vector{vec} is:"
solution = math.sqrt(sum([i**2 for i in vec]))
return problem, solution
eucldianNorm = Generator("Euclidian norm or L2 norm of a vector", 69,
"Euclidian Norm of a vector V:[v1, v2, ......., vn]",
"sqrt(v1^2 + v2^2 ........ +vn^2)", euclidianNormFunc)