Learn R Programming

RSEIS (version 4.2-4)

xprod: Vector Cross Product

Description

Cross product of two vectors

Usage

xprod(A1, A2)

Value

3 component vector of A1 cross A2

Arguments

A1

3 component vector of x,y,z

A2

3 component vector of x,y,z

Author

Jonathan M. Lees <jonathan.lees@unc.edu>

Examples

Run this code
B1 <- c(4,9,2)
B2 <- c(2,-5,4)

xprod(B1, B2)


Run the code above in your browser using DataLab