-
Notifications
You must be signed in to change notification settings - Fork 0
Dev Notes
9/16:
-
Working on adding a bunch of random physics constants. The goal isn't to be an encyclopedia, but it finds weird corner cases to fix.
-
For example, the autocollapse was reducing the Big G gravitational constant (
6.67430 * 10^-11 newton meter^2 / kilogram^2) intoGray, since that is an even more compact representation. Some times likeGrayshouldn't be used in auto-reductions, so that has been removed [if you need it, you can force convert to it]. -
I'm thinking about how many aliases to support. While I like keeping things clean, I also like "doing what you mean". If someone pastes a line from a textbook, Wolfram Alpha, Matlab, or another program, I'd like to just parse the constants they use as well. Why not? "Don't make me think!"
Implied oerator precedence:
- Implied multiplication tries to follow Rule A here: https://math.ucr.edu/home/baez/physics/General/binaryOps.html. In other words,
1/2 secondshould be0.5 seconds, not1/(2 seconds) = 0.5 Hz. Similarly,1 / 2 (3 + 4) = (1/2)(3+4) = 3.5.