We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a145259 commit bddcef9Copy full SHA for bddcef9
1 file changed
Euclidean_Norm/Scala/jcla1/norm.scala
@@ -0,0 +1,2 @@
1
+def euclideanNorm(p: List[Double]): Double =
2
+ math.sqrt(p.map(n => n*n).sum)
0 commit comments