question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Ga.ReciprocalFrame is nonsensical

See original GitHub issue

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 #219)

Labelling as docs too, since there is no docstring

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
eric-wiesercommented, Jan 6, 2020

Nope, added a checkbox for the bullet points above. g.ReciprocalFrame(g.basis) ought to error instead of producing garbage, which is caused by g.mv_basis[0] ^ g.basis[1] behaving poorly

0reactions
eric-wiesercommented, May 20, 2020

Removed the docs tag, since this now has a docstring and type annotations.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Reciprocal Frame Structures
A possible definition of a reciprocal frame is a grid of linear members where each member simultaneously supports and is supported by its...
Read more >
Ingenious Solutions For Long Spans: Reciprocal Framing ...
Reciprocal Frames are a method of providing structural support with mutually supported beams in a closed circuit. Reciprocal frames have ...
Read more >
Reciprocal frame - Wikipedia
A reciprocal frame is a class of self-supporting structure made of three or more beams and which requires no center support to create...
Read more >
RECIPROCAL FRAME ARCHITECTURE
This book covers the little known structural and architectural concept, design and construction of reciprocal frames, and is the first authoritive.
Read more >
Reciprocal Frame Structures Made Easy - CGL | SUTD
A reciprocal frame (RF) is a self-supported three-dimensional structure made up of three or more sloping rods, which form a closed circuit, namely...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found