Learn R Programming

mulgar (version 1.0.5)

calc_norm: Calculate the norm of a vector

Description

Returns the square root of the sum of squares of a vector

Usage

calc_norm(x)

Value

numeric value

Arguments

x

numeric vector

Examples

Run this code
x <- rnorm(5)
calc_norm(x)

Run the code above in your browser using DataLab