This question shows research effort; it is useful and clear
0
This question does not show any research effort; it is unclear or not useful
Bookmark this question.
Show activity on this post.
我在 R 中有以下功能:
compute.Euclidean.norm <- function(n) { #vector of n-dimension
sum <- 0
for (i in seq_along(n)) { #for loop
sum <- sum + (n^2)
i <- i+1
}
return(sum)
}