Skip to content

Ga.ReciprocalFrame is nonsensical #213

Open
@eric-wieser

Description

@eric-wieser

This behavior doesn't make much sense to me:

>>> from galgebra.ga import Ga
>>> g, *_ = Ga.build('e*0|1|2')
>>> g.ReciprocalFrame(g.basis)
(1, -1, (e_1.e_2)/(e_2.e_2) + e_1^e_2/(e_2.e_2))
>>> g.ReciprocalFrame(g.basis, mode='no-norm-please')  # any string will do
((e_2.e_2)*1**2,
 -(e_2.e_2)*1**2,
 (e_1.e_2)*1**2 + 1**2*e_1^e_2,
 (e_2.e_2)*1**2)

Things which are weird here:

  • I was expecting to get some vector elements in this output, not a mixture of scalars and bivectors.
  • 1 is actually Symbol('1'), not the value 1, in the second output! (fixed in Cleanup ReciprocalFrame #219)

Labelling as docs too, since there is no docstring

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions