projection: Vector Projection Function

Description Usage Arguments Value Examples

Description

Find the vector projection.

Usage

1
projection(v, u)

Arguments

v

vector of real numbers.

u

vector of real numbers.

Value

Returns a projection of u onto v.

Examples

1
2
3
4
5
6
v <- c(1, 2)
u <- c(3, -8)
projection(v, u)
v <- c(1, 0, 3)
u <- c(-1, 4, 2)
projection(v, u)

JessicaSousa/INF2471.P1 documentation built on May 21, 2019, 4:03 a.m.