RobinHankin / stokes

methods for exterior calculus
https://robinhankin.github.io/stokes/
3 stars 0 forks source link

wedge products of 0-forms #4

Closed RobinHankin closed 5 years ago

RobinHankin commented 5 years ago

A number is just a zero form so it should be possible to take a wedge product of a number and a kform. But:

> 1 %^% as.kform(1)
Error in wedge2(x, ...) : inherits(F1, "kform") is not TRUE
> 

Note that * works fine, as it should:

> 1 * as.kform(1)
       val
 1  =    1
> 
RobinHankin commented 5 years ago

And the wedge product of two scalars is just the product of those scalars

RobinHankin commented 5 years ago

spoke too soon:

> wedge(3,5)
Error in S[[2]] : subscript out of bounds
> wedge(3,as.kform(3))
Error in S[[2]] : subscript out of bounds