powered by
Given a \(k\)-form, return its Hodge dual
hodge(K, n=max(index(K)), g=rep(1,n), lose=TRUE)
Object of class kform
kform
Dimensionality of space, defaulting the the largest element of the index
Diagonal of the metric tensor, defaulting to the standard metric
Boolean, with default TRUE meaning to coerce to a scalar if appropriate
TRUE
Given a \(k\)-form, in an \(n\)-dimensional space, returns a \((n-k)\)-form.
wedge
# NOT RUN { hodge(rform()) hodge(kform_general(4,2),g=c(-1,1,1,1)) ## Some edge-cases: hodge(zero(5),9) hodge(volume(5)) hodge(volume(5),lose=TRUE) hodge(scalar(7),n=9) # }
Run the code above in your browser using DataLab