calculus (version 0.1.0)

cross: Numerical and Symbolic Cross Product

Description

Computes the generic cross product of N-1 vectors of length N.

Usage

cross(...)

x %cross% y

Arguments

...

N-1 vectors of length N.

x

3-d vector

y

3-d vector

Value

N-dimensional vector orthogonal to the N-1 vectors.

Functions

  • cross: N-d cross product

  • %cross%: 3-d cross product

Examples

Run this code
# NOT RUN {
# canonical basis 3-d
c(1,0,0) %cross% c(0,1,0)

# canonical basis 4-d
cross(c(1,0,0,0), c(0,1,0,0), c(0,0,0,1))

# }

Run the code above in your browser using DataLab