Post Reply 
Plus42 Equations, Preview Release
12-09-2021, 05:43 PM
Post: #110
RE: Plus42 Equations, Preview Release
(12-09-2021 08:56 AM)Werner Wrote:  I found this:
Dimensions of derived quantities
It would seem the preferred ordering is L^a.M^b.T^c.... (see the article)
eg Newton would then be m.kg/s^2
(even if I have always learned it to be kg.m/s^2, but that is admittedly a long time ago)

I think that article is just stating that every unit can be expressed as the product of integral powers of those seven base units; I'm not sure they mean to imply that those seven units should necessarily be written in that order. And even if they do, I'm inclined to ignore it, because it clearly violates established usage, as in kg usually coming before m, and it doesn't even help when it comes to compounds containing derived units, like N*m.

My current code sorts according to whatever order is used by std::map<string, int>, which I'm guessing just sorts by character code. This actually works rather well, since it sorts uppercase characters before lowercase ones, and that's exactly right in many cases. Big Grin
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Plus42 Equations, Preview Release - Thomas Okken - 12-09-2021 05:43 PM



User(s) browsing this thread: 3 Guest(s)