Learn R Programming

smallstuff (version 1.0.3)

laCrossProd: Cross Product (Linear Algebra)

Description

Calculate the cross product as defined in linear algebra; note that this differs from the cross product as defined by R.

Usage

laCrossProd(x, y)

Value

Cross product of x and y.

Arguments

x

vector of length 3.

y

vector of length 3.

Examples

Run this code
x=c(1,2,1)
y=1:3
laCrossProd(x,y)

Run the code above in your browser using DataLab