Grassmann.jl icon indicating copy to clipboard operation
Grassmann.jl copied to clipboard

Inner Product between vector and bivector

Open mw95710 opened this issue 2 years ago • 4 comments

Using @basis S"+++"

Define:

x = v1 + v2 + v3 i = v23

when I want the inner product I get x | i = 0, even though I am expecting -v2 + v3. Am I missing something?

mw95710 avatar Apr 14 '22 10:04 mw95710

Yes, you are missing something, what you don't understand is that there are 8 possible variations of inner product, all of which are essentially the same, except for a few swaps. In Grassmann I adhere to the OG (original Grassmann` definitions, while in some of the literature, such as by Cambridge university authors, you may find incorrect inner products used not based on the original.

chakravala avatar Apr 14 '22 11:04 chakravala

I see. I was not aware of left and right contraction definitions. Just making sure, are the left and right contraction implementations in Grassmann.jl the same as in the Wikipedia article?

https://en.wikipedia.org/wiki/Geometric_algebra

mw95710 avatar Apr 14 '22 13:04 mw95710

are the left and right contraction implementations in Grassmann.jl the same as in the Wikipedia article?

Grassmann.jl is its own reference standardization, based on my interpreting the OG (original Grassmann) knowledge. Wikipedia does not generate a full reference implementation of these definitions, so I am not sure what their definition is. Some other sources such as authors from Cambridge use definitions that are incorrect and not compatible with the OG (original Grassmann)

chakravala avatar Apr 14 '22 13:04 chakravala

@mw95710 you can use \intprod , which is close ( maybe the same ) as what you expect.

As @chakravala stated, they use an alternate definition for inner product. This is not unusual. Kind of a GA gotcha, lots of variations out there for metric operators ( dual, innerproduct, vee, etc ). You need to look up the definition for such operators used for each GA library you use to make sure you are on the same page.

Orbots avatar May 11 '22 20:05 Orbots