vectorialOperations: Basic Vectorial Operations

Description Usage Arguments Value See Also Examples

Description

Basic vectorial operations such as scalar product and vectorial product

Usage

1
2
3
4
5
6
7
dotProd(U, V)

vectNorm(U)

rotVect(U, n = 1)

vectProd(U, V)

Arguments

U

a numeric vector of length 3.

V

a numeric vector of length 3.

n

an integer.

Value

See Also

matmult

Examples

1
2
3
4
5
6
Vx <- c(3,0,0)
vectNorm(Vx)
Vx <- Vx/vectNorm(Vx)
Vy <- c(0,1,0)
Vz <- vectProd(Vx, Vy)
print(Vz)

Rpdb documentation built on Sept. 26, 2017, 1:05 a.m.