News for hackers. Stuff that matters.
Re:Localization Failure: Temperature Is Hard by mikewarot on Wednesday October 18, 2023 @01:35AM (#37925160)
If you want "twice as hot" to be meaningful, you have to use an absolute scale, either Kelvin or Rankine. (1 °K = 1.8 °R)

Room temperature is approximately 293 °K, twice that is 586 °K / 595 °F / 313 °C. Hotter than your typical oven cooking temperature.

We often don't realize how warm the world we live in truly is, from a physics standpoint.

Re:Localization Failure: Temperature Is Hard by usui on Wednesday October 18, 2023 @01:41AM (#37925193)
Kelvin doesn't use degrees
Re:Localization Failure: Temperature Is Hard by psychoslave on Wednesday October 18, 2023 @01:59AM (#37925285)
Why do we use degrees for other temperatures by the way? Is that related to some kind of absolute vs relative metric? (Kelvin, I guess, is based on absolute zero as a reference point, doesn't it?)

Incidentally, why is the degree immune to disappearance in division unlike all other units? That is, if I divide a distance (m) by a speed (m/s) I get a duration (s). From sheer memory, degree doesn't work like that. Any clue why?

Re:Localization Failure: Temperature Is Hard by rocqua on Wednesday October 18, 2023 @02:03AM (#37925298)
Degrees aren't a 'unit' indeed because the zero point isn't a real zero. Hence you don't get correct scaling.
Re:Localization Failure: Temperature Is Hard by bloak on Wednesday October 18, 2023 @02:27AM (#37925422)
That is true, but if you're talking about a change in temperature (the temperature is rising by 2 degrees per hour, or the temperature falls by so many degrees per km of altitude) then there's a real zero, of course.
Re:Localization Failure: Temperature Is Hard by js8 on Wednesday October 18, 2023 @02:20AM (#37925386)
Except for the degrees that measure an angle.
Re:Localization Failure: Temperature Is Hard by Arch485 on Wednesday October 18, 2023 @02:46AM (#37925506)
No - An angle can be measured from an arbitrary point, and thus "0°" is not a true zero.

"0° on a circle" (for example) doesn't make sense. It has to be 0° _from somewhere._

Re:Localization Failure: Temperature Is Hard by its-summertime on Wednesday October 18, 2023 @03:05AM (#37925631)
A length can be measured from an arbitrary point too, no? And in some cases must be.

The perimeter of a circle for example.

- - -

Further, Radians is another measurement of angle, but it is not "degrees radian"

Re:Localization Failure: Temperature Is Hard by tinus_hn on Wednesday October 18, 2023 @03:47AM (#37925923)
180° on a circle makes a lot of sense, it’s half the circle. Just like a meter makes sense, it’s a unit of distance.
Re:Localization Failure: Temperature Is Hard by mananaysiempre on Wednesday October 18, 2023 @05:28AM (#37926494)
> Incidentally, why is the degree immune to disappearance in division unlike all other units?

I understand why one could say that, but I’d say it’s more misleading than helpful. (And the reason why is directly connected to the problem TFA discusses.)

Instead of temperature, let’s look at time first.

If you’re measuring the temporal extent of an event, then it absolutely makes sense to divide 30s by 15s or 6 days by 3 days and obtain a dimensionless 2: one thing takes twice as long as another, and the factor 2 that doesn’t depend on the choice of units, so it’s dimensionless.

Now consider dates. The year AD 2022 denotes (not very precisely) a point in time by specifiying its distance from a fixed reference in years; as another example, astronomers use the “Julian day”, which is a (possibly non-integer) number of days from a different reference point.

And you could technically divide AD 2022 by AD 1011—the ratio between the distances to the reference point is indeed a dimensionless 2, and if you counted days from it instead of years it’d still be the same. But it’s just not a very useful statement. And if you divide the Julian days instead, you’ll get a different number, because the reference point has moved 4712 years. So you can divide the time coordinates as long as the chosen origin stays in place, but you can’t really divide points in time.

Similarly, when you’re talking about differences in temperature, degrees work like any other unit, but temperatures themselves cannot be divided in the standard scales (without tying yourself to the scale): you’ll get the same result in Celsius and Réaumur (using the same origin) but a different result in Fahrenheit (using a different origin).

Of course, the silly part is that there is a natural origin for temperature, it’s just that the usual scales don’t use it. But then there’s a natural origin for time as well (and you’ll occasionally see it used in cosmology), it’s just that it’s metrologically inconvenient (being known only very approximately) in addition to being very far away.

(Library assignment: what defines a coordinate system on an affine line?)

Re:Localization Failure: Temperature Is Hard by Karellen on Wednesday October 18, 2023 @06:33AM (#37926882)
The root of the word "degree" basically means "units" or "subdivisions" or "measurements" or "amounts".

We didn't really have a better word for units of temperature, as "Celsiuses" or "Farhenheits" didn't become a thing, so "degrees (of) Celsius" or "degrees (of) Fahrenheit" is kind of what we're left with. We could have chosen to say "degrees (of) kelvin", but we decided to go with "kelvins" (like "meters" or "seconds") instead. It's just a choice of language.

Temperature does have dimensionality, but it's weird because it's a bulk property of a particular material. If you consider two stars, you can add their masses, or their volumes, and the resulting values are meaningful. But you can't add their temperatures. You can't even average their temperatures meaningfully without knowing the relative sizes of the stars and a bunch of other information either.

That said, I can't think of a situation where degrees (of temperature?) would disappear in a mathematical operation. Can you give a specific example?

Re:Localization Failure: Temperature Is Hard by trepanne on Wednesday October 18, 2023 @08:29AM (#37927656)
> That said, I can't think of a situation where degrees (of temperature?) would disappear in a mathematical operation.

I regret that the decades that have elapsed since I studied physical chemistry & thermodynamics don’t permit me to make a proper answer, but if you want this to make sense I believe you should look many orders of magnitude smaller- Boltzman’s derivation of the ideal gas law from Newtonian mechanics using statistical methods.

Temperature is basically thermal density; it’s not really a fundamental unit. Chemical engineers use steam tables all the time to convert temperature to heat or other quantities.

Re:Localization Failure: Temperature Is Hard by dan_hawkins on Wednesday October 18, 2023 @10:18AM (#37929054)
> Incidentally, why is the degree immune to disappearance in division unlike all other units?

It's not. If you divide temperature by temperature (T/T) you get unitless value. But it doesn't make sense (what does it mean Kelvins per Kelvin?) Your mistake is to take a scalar value for temperature: 300 K / 2 = 150 K (T/scalar = T).

Re:Localization Failure: Temperature Is Hard by GuB-42 on Wednesday October 18, 2023 @02:08PM (#37932433)
Degrees are used for many things besides temperature. Angles obviously, but is also common in some countries for alcohol concentration (same as %ABV) and other specialized units. Essentially, "degree" means "unit", and "degree Celsius" means "the unit of Mr.Celsius". SI dropped it for Kelvin probably for consistency and because it is redundant information, we already know that Kelvin is a unit, no need to specify "degree". It also adds a funny character to the abbreviation, and would be the only unit in two words.

It isn't because it is a relative scale, Rankine uses degrees and it is an absolute temperature scale just like Kelvin. The difference, I'd say, is that the Rankine scale didn't go though the SI standardization process.

There is nothing special with division, "degree Celsius" is the unit, you can't separate the "degree" from the "Celsius". You can measure a thermostat dial in degrees Celsius per degree (of angle). The resulting unit is just that, not "Celsius".

Re:Localization Failure: Temperature Is Hard by kergonath on Wednesday October 18, 2023 @09:48AM (#37928615)
You’re right in modern usage, but it is common to see °K in older documents.
Re:Localization Failure: Temperature Is Hard by mr_mitm on Wednesday October 18, 2023 @02:19AM (#37925379)
You don't need an absolute scale, you just need a sensible origin. I suggest taking human perception into account.

When talking about the weather or everyday objects, one could argue that the border between "hot" and "cold" is somewhere at room temperature, so around 21°C. At that temperature, it's neither hot or cold. If it's 30°C, it's 9°C of "hotness", so 39°C would be twice as hot. I don't know if it feels twice as hot, as that's quite subjective, but if you want more precision we should switch to another vocabulary entirely.

Re:Localization Failure: Temperature Is Hard by lostmsu on Wednesday October 18, 2023 @02:59AM (#37925593)
36.6C?
Re:Localization Failure: Temperature Is Hard by throwaway290 on Wednesday October 18, 2023 @08:04AM (#37927464)
How given temperature feels depends on humidity, airflow, local culture, individual human and specific condition of that human (sitting/moving/sleeping, caffeinated, just ate a meal, bored, enthusiastic).

- I know someone who wears a puffy jacket indoors if it's 24 degrees.

- You will find sitting in 20 degrees with 88% humidity much more miserable than 20 degrees and 33% humidity.

- 42deg with 20% humidity and slight breeze is fine, 38deg with 90% humidity can make you pass out in minutes if you need to walk anywhere in the sun.

Re:Localization Failure: Temperature Is Hard by Joker_vD on Wednesday October 18, 2023 @08:38AM (#37927751)
Water-freezing temperature is an absolutely sensible zero. The difference between e.g. 2 °C and -2 °C is really quite obvious for the exposed skin: while it's merely "yeah, it's cold" feeling when it's above zero, it almost feel like the frost is biting, almost literally, when it's below zero.
Re:Localization Failure: Temperature Is Hard by bangkoksbest on Wednesday October 18, 2023 @09:12AM (#37928142)
This is not true, and it's why we developed separate scales for wind chill (which factors in wind) and heat index (which factors humidity).

Looking at the wind chill chart[0] for frostbite times, there is nothing particularly special around the freezing point temperature, even at absurd wind speeds. Ironically, actually, the 0 point for Fahrenheit is far more relevant threshold for frostbite.

[0] https://www.weather.gov/safety/cold-wind-chill-chart

Re:Localization Failure: Temperature Is Hard by katbyte on Wednesday October 18, 2023 @09:36AM (#37928467)
Neither of those are as important as “when water freezes” (ice snow weather effects), boils, and having a nice 100d in between
Re:Localization Failure: Temperature Is Hard by ghaff on Wednesday October 18, 2023 @09:59AM (#37928777)
The freezing point of water is indeed one reasonable origin point but the temperature at which water boil (at sea level) isn't very relevant to most people's day to day experiences much less having a nice interval between the two points. You have to use Kelvin as an absolute scale for a lot of scientific and engineering calculations anyway although it would be pretty silly for day-to-day use.
Re:Localization Failure: Temperature Is Hard by nephanth on Thursday October 19, 2023 @12:13AM (#37938302)
I'd argue that boiling water (or water-based liquids) is something we encounter pretty often in day to day life (eg. while cooking, brewing tea, ), making it a reasonable reference
Re:Localization Failure: Temperature Is Hard by kergonath on Wednesday October 18, 2023 @09:44AM (#37928563)
But then this is also valid if the zero is at 21°C. There is also nothing special at 0°F, it’s just the colour scale that makes it look like that. And if we based the scale on human perception we’d have to define many other parameters besides wind and humidity, like body shape and metabolism rate. It’s more of an argument against basing a temperature scale on human perception (and then I agree completely, which is why I find the centigrade scale much better, except for serious business that demands kelvins).
Re:Localization Failure: Temperature Is Hard by bangkoksbest on Wednesday October 18, 2023 @10:02AM (#37928829)
Yeah, it's not like Fahrenheit or any temperature scale is literally calibrated to human perception (they're all now defined as transformations from kelvin anyways), that's just a (minor) ancillary impact that can be discussed.
Re:Localization Failure: Temperature Is Hard by ghaff on Wednesday October 18, 2023 @09:55AM (#37928718)
Wind chill is a mostly stupid number that weather reports like to trot out so they have a amped up "wow it's really cold" factor. Yes, a number of factors p[lay into our subjective perceptions of temperature but you're probably not walking around in a bathing suit when it's below freezing with a howling wind.
Re:Localization Failure: Temperature Is Hard by bangkoksbest on Wednesday October 18, 2023 @10:07AM (#37928909)
Sure, same with heat index. They are tools for communicating the impact of additional axes (wind speed for cold and humidity for heat) on subjective perception. I won't wander out without a scarf, or neck covering, if it's freezing and 40mph winds, but I don't mind to if it's freezing and no wind.
Re:Localization Failure: Temperature Is Hard by Sebb767 on Wednesday October 18, 2023 @01:40PM (#37932053)
I don't think they are aiming for the wow factor. Most people arguably watch the weather report to find out how cold or warm it feels outside, which heat index and wind chill are far better at reporting.
Re:Localization Failure: Temperature Is Hard by _Microft on Wednesday October 18, 2023 @09:35AM (#37928450)
To take ratios you need an absolute zero because otherwise ratios aren‘t even defined.

See also my other comment here: https://news.ycombinator.com/item?id=37928268

Re:Localization Failure: Temperature Is Hard by ginko on Wednesday October 18, 2023 @02:50AM (#37925532)
Dealing with any temperature difference requires an absolute scale as well.

The difference between 20°C and 25°C is 5K.

Re:Localization Failure: Temperature Is Hard by lynguist on Wednesday October 18, 2023 @03:18AM (#37925708)
Twice as hot is also useful in Celsius. For every increase of 10C chemical reactions happen twice as fast, it will literally, thermodynamically be twice as hot.

Which will probably even match your subjective feeling.

Celsius scales thermodynamically logarithmically. You can’t just double the numbers. (The same with sound etc.)

Re:Localization Failure: Temperature Is Hard by Certhas on Wednesday October 18, 2023 @04:25AM (#37926154)
Reaction rates are approximately exponential in temperature, but there is nothing special about 10C. The doubling temperature difference depends on what reaction you look at.

This is as opposed to decibel for sound, where +10 decibel means X10 power exactly.

Re:Localization Failure: Temperature Is Hard by InitialLastName on Wednesday October 18, 2023 @09:56AM (#37928730)
To be clear, that's true of power decibels for everything, not just sound.
Re:Localization Failure: Temperature Is Hard by thfuran on Wednesday October 18, 2023 @08:30AM (#37927666)
>For every increase of 10C chemical reactions happen twice as fast

Except for the ones that get at different rates.

Re:Localization Failure: Temperature Is Hard by _Microft on Wednesday October 18, 2023 @09:22AM (#37928268)
The Celsius scale is an "interval scale" while the Kelvin scale is a "ratio scale". One cannot take ratios of Celsius temperature values as ratios are not even defined for that. It’s possible for differences of temperatures on the Celsius scale, though.

https://en.wikipedia.org/wiki/Level_of_measurement

Re:Localization Failure: Temperature Is Hard by aqme28 on Wednesday October 18, 2023 @08:50AM (#37927858)
> We often don't realize how warm the world we live in truly is, from a physics standpoint.

Or cold? There is a big ball in our solar system sitting at tens of millions of degrees K, and you think 273 degrees is warm?

Re:Localization Failure: Temperature Is Hard by benhurmarcel on Thursday October 19, 2023 @05:33AM (#37940525)
The Python package "pint" (to manage units) implements that with different units for absolute temperature vs delta temperatures.

https://pint.readthedocs.io/en/stable/user/nonmult.html