Alpine обратиться по имени
Понедельник, 19 Мая 2003 г. 07:12 (ссылка)
So let the temperature in C be XY, then its flip is YX, the temperature in F, right?
Mathematically XY is X*10+Y. For instance, 34=30+4=3*10+4.
Ok, now the conversion formula:
X*10+Y=(5/9)(Y*10+X-32);
90X+9Y=50Y+5X-160;
85X=41Y-160;
This equation has two unknowns. But no worries, mate :)
X can only take values 0, 1, 2, 3, because temperature above 40 C is given by THREE digits in F, so that won't work.
So let's try X=0:
0=41Y-160 -> Y~4, therefore XY is 04 and YX is 40. (pair #1)
X=1:
85=41Y-160
245=41Y, and Y~6, therefore XY is 16 and YX is 61 (pair #2)
X=2:
85*2=41Y-160
170+160=41Y
330=41Y and Y~8, therefore XY=28 and YX=82 (pair #3)
X=3:
85*3=41Y-160
255+160=41Y
415=41Y, and Y~10; this case doesn't work because then XY is 310....
So now the morning temperature was 82 F/28 C, and the evening temperature was 61 F/16 C.