-
-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft: prelude with dimensionful angles #167
base: master
Are you sure you want to change the base?
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
prelude
to treat angles as dimensionful quantities.Angle
becomes a new base dimension. Andradian
is 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
,eV
etc., we don't see[Energy or Torque]
anymore. We just see[Energy]
.lumen -> candela
conversion is not possible anymore (1 lumen does not equal 1 candela (1 lm -> cd
returns1 cd
) insect#225)But
400 cd * (5°)^2 -> lm
is still possible, as it should. Completely wrong expressions like400 cd / (5°)^2 -> lm
do not type-check anymore.lumen
, it doesn't show[LuminousIntensity or LuminousFlux]
, but justLuminousFlux
. Similarly,candela
only showsLuminousIntensity
.40°/s
is detected asAngularFrequency
, not asFrequency
.ASin
,ACos
,ATan
, …log(30°)
.ASin
, … as an angle inrad
30°
, 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
/rad
when needed.Sin(…)
for angles andsin(…)
for scalars.ℏ: AngularMomentum
, there is alsoȟ: Action
.m/rad
and dimensions ofLength / Angle
.Try this online at: https://numbat.dev/angles/