Learn R Programming

stokes (version 1.2-1)

wedge: Wedge products

Description

Wedge products of \(k\)-forms

Usage

wedge2(K1,K2)
wedge(x, ...)

Value

The functions documented here return an object of class

kform.

Arguments

K1,K2,x,...

\(k\)-forms

Author

Robin K. S. Hankin

Details

Wedge product of \(k\)-forms.

See Also

Examples

Run this code

k1 <- as.kform(cbind(1:5,2:6),1:5)
k2 <- as.kform(cbind(5:7,6:8,7:9),1:3)
k3 <- kform_general(1:6,2)

a1 <- wedge2(k1,wedge2(k2,k3))
a2 <- wedge2(wedge2(k1,k2),k3)

is.zero(a1-a2)  # NB terms of a1, a2 in a different order!

# This is why wedge(k1,k2,k3) is well-defined.  Can also use ^:
k1 ^ k2 ^ k3

Run the code above in your browser using DataLab