You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was using the package to do some relativistic kinematics calculations and noticed the following strange behavior. I would assume the 4D dot product to be the Lorentz inner product (so metric ---+), but it seems for some situations it reverts to a Cartesian inner product (metric ----). I would assume this is a bug as I wouldn't expect this sort of behavior or saw anything mentioned in the documentation that would explain it.
Here is an example that at least on my system shows the behavior. Simply flipping the sign of the fourvector SmuT yields the Cartesian instead of the Lorentz inner product. As a note, SmuT is constructed such that it is a spatial unit vector and (SmuT*P) should be zero.
ST^2 -1.0
S dot P Lorentz 6.875338094560275 -4.440892098500626e-16
Cartesian+: -6.875338094560275
I get similar behaviour in other situations, where changing some components of fourvectors flips a Lorentz inner product to a Cartesian one, seemingly at random.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I was using the package to do some relativistic kinematics calculations and noticed the following strange behavior. I would assume the 4D dot product to be the Lorentz inner product (so metric ---+), but it seems for some situations it reverts to a Cartesian inner product (metric ----). I would assume this is a bug as I wouldn't expect this sort of behavior or saw anything mentioned in the documentation that would explain it.
Here is an example that at least on my system shows the behavior. Simply flipping the sign of the fourvector SmuT yields the Cartesian instead of the Lorentz inner product. As a note, SmuT is constructed such that it is a spatial unit vector and (SmuT*P) should be zero.
Output:
I get similar behaviour in other situations, where changing some components of fourvectors flips a Lorentz inner product to a Cartesian one, seemingly at random.
All reactions