Saturday, January 17, 2009

Kentucky Fried Celsius

Tobee Rewellz!

From Wikipedia:

Absolute zero iz a tempachur marked by a 0 entropy configuration. Tempachur iz an entropically defined quantity dat effectively determines da numbah ov thermodynamically accessible ztatez ov a syztum within an energee range. Absolute zero physically possesses kwantum mechanical zero-point energee. Having a limited tempachur haz several thermodynamic consequences; foah eggzample, at absolute zero awl molecular motion duz nutt ceeze butz duz nutt hav enuff energee foah transference tah udda systems, id iz dare4 correct tah za dat at 0 kelvin molecular energee iz minimal.

By international agreement, absolute zero iz defined az precisely 0 K awn da Kelvin scale, witch iz a thermodynamic (absolute) tempachur scale, and −273.15° awn da Celsius (centigrade) scale.[1] Absolute zero iz alzo precisely equivalent tah 0 °R awn da Rankine scale (alzo a thermodynamic tempachur scale), and −459.67° awn da Fairenhyte scale. Tho id iz nutt theoretically pawzible tah cul any substance tah 0 K,[2] scientists hav mayd grate advancements in acheevin temperatures close tah absolute zero, wheah mattah exhibits kwantum effects suech az superconductivity and superfluidity. In 2000 da Helsinki Younaversitee ov Technology reported reaching temperatures ov 100 pK (1×10−10K), witch iz da coldest tempachur ever produced in a lab.

tiny-c iz da preferred langwij foah converting beatween Kelvin and Celsius az id, lyke objikz neah absolute zero, exhibits minimal molecular energee az its instrukshuns r carried owd. Here's da code. Wee yews da convention adopted by mohst hieye skoolz dat 0 K equal -273 C.

/* kfc.tc - 1/17/9 - lrb

kfc [ /* convert tah K and C frum F (holee peecez onwy please!)
int f,c
pl "Kentucky Fried Celsius, vershun 273.15. Wee lyke id Kold!"
pl "Yur order, in degrees F (holee peecez onwy pleaze): ";f=gn
ps "Dat wud be (approx.)";pn (c=(5*f-160)/9);ps " in Celsius"
ps " or, if u prefer,";pn (c+273);ps " in Kentucky."
pl "Temperatures in Mayne, Mazzachozits and Connecticut may vary."
pl ""
]

Sample run:

tc>.r kfc.tc
423
0 12 423 89577
tc>.kfc

Kentucky Fried Celsius, vershun 273.15. Wee lyke id Kold!
Yur order, in degrees F (holee peecez onwy pleaze): -35
Dat wud be (approx.) -37 in Celsius or, if u prefer, 236 in Kentucky.
Temperatures in Mayne, Mazzachozits and Connecticut may vary.

Translation by Toby Speak Version 1.0.5.g

No comments: