Draft: prelude with dimensionful angles - #167
Conversation
78350c8 to
84c856f
Compare
84c856f to
f067627
Compare
|
Will there be an option to turn this off? The idea of angles being dimensionless still did not get into mainstream physics. Having different dimensions for Torque and Energy (or Bohr radius and length) may give rise to a lot of confusions. In my opinion (but I am saying this with my physicist hat on) it is best if this feature is turned off by default, but can be turned on by calling something like |
This is just a proof of concept / draft. It will not be merged as-is. And no, we will most probably not enable this by default. What I'm planning to have is something like #55, which would allow us to have one single prelude, where certain aspects could be controlled by the user (via a config file). So users could potentially opt in to this by setting |
I do agree. But note that the current situation also leads to lots of confusion. Just look at the tickets linked in #91 (comment) |
f7842ef to
8c3ca05
Compare
8c3ca05 to
bca0527
Compare
b7cf54c to
bfbcb50
Compare
4152e30 to
df3aad5
Compare
see #91
This PR makes changes to Numbats
preludeto treat angles as dimensionful quantities.Anglebecomes a new base dimension. Andradianis the base unit in that dimension. This follows the paper Angles in the SI: a detailed proposal for solving the problem by Quincey.Immediate advantages of this approach:
J,cal,eVetc., we don't see[Energy or Torque]anymore. We just see[Energy].lumen -> candelaconversion is not possible anymore (1 lumen does not equal 1 candela (1 lm -> cdreturns1 cd) insect#225)But
400 cd * (5°)^2 -> lmis still possible, as it should. Completely wrong expressions like400 cd / (5°)^2 -> lmdo not type-check anymore.lumen, it doesn't show[LuminousIntensity or LuminousFlux], but justLuminousFlux. Similarly,candelaonly showsLuminousIntensity.40°/sis detected asAngularFrequency, not asFrequency.ASin,ACos,ATan, …log(30°).ASin, … as an angle inrad30°, they don't just "decay" to scalars (this is one of Numbats simplification procedures… which is not ideal in the case when angles are dimensionless).Obvious disadvantages:
θC/theta_C/radwhen needed.Sin(…)for angles andsin(…)for scalars.ℏ: AngularMomentum, there is alsoȟ: Action.m/radand dimensions ofLength / Angle.Try this online at: https://numbat.dev/angles/