Learn R Programming

fungible (version 2.4.4)

vcos: Compute the Cosine Between Two Vectors

Description

Compute the cosine between two vectors.

Usage

vcos(x, y)

Value

Cosine between x and y

Arguments

x

A p x 1 vector.

y

A p x 1 vector.

Examples

Run this code

x <- rnorm(5)
y <- rnorm(5)
vcos(x, y)

Run the code above in your browser using DataLab