Learn R Programming

fungible (version 2.2)

vcos: Compute the Cosine Between Two Vectors

Description

Compute the cosine between two vectors.

Usage

vcos(x, y)

Arguments

x

A p x 1 vector.

y

A p x 1 vector.

Value

Cosine between x and y

Examples

Run this code
# NOT RUN {
x <- rnorm(5)
y <- rnorm(5)
vcos(x, y)

# }

Run the code above in your browser using DataLab