Learn R Programming

rmargint (version 2.0.2)

my.norm.2: Euclidean norm of a vector

Description

This function calculates the Euclidean norm of a vector.

Usage

my.norm.2(x)

Value

The Euclidean norm of the input vector.

Arguments

x

A real vector.

Author

Matias Salibian-Barrera, matias@stat.ubc.ca, Alejandra Martinez

Examples

Run this code
x <- seq(-2, 2, length=10)
my.norm.2(x)

Run the code above in your browser using DataLab