Talk:Temperature conversion: Difference between revisions

m
m (thanks extended)
 
(26 intermediate revisions by 4 users not shown)
Line 17:
</pre>
:::::: I'd rather tell a user about apparently wrong input (as Google does: "did you mean ....?") instead of accepting it. Anyway, centigrade and Celsius are the only names for that scale that I know. Thanks for telling me about Celsius' merits. --[[User:Walterpachl|Walterpachl]] ([[User talk:Walterpachl|talk]]) 05:10, 14 August 2013 (UTC)
 
::::::: Google has a different purpose; &nbsp; when somebody enters a word (or words) to be found, Google doesn't know (for sure) if the word is misspelled or not, as a matter of fact, it will find entries for misspelled words, and of course, things that aren't words at all. &nbsp; Google's purpose is to assist in finding stuff. &nbsp; The purpose of (my) temperature conversion is to convert a unit (or units) of temperature scales to another scale (actually, a set of temperature scales), and if the user enters (misspelled) celcius, I know what he meant to enter. &nbsp; Google can't do that for certain, so it prompts the user and may go with the correct spelling (which is a judgement call, for it may be that the misspelled word is what the user wanted to find); &nbsp; which is what my program does (goes with correct spelling). &nbsp; Google, of course, allows the user to force Google to use the original word (or the correct spelled word, I suspect there is some heuristics going on), but that isn't applicable for this application (program) and would be waste of the user's time to force re-entering of the temperature scale, and without a hint, the user wouldn't necessarily know the correct spelling (unless the user knew it was a typo). &nbsp; If a user specified ''celcius'', there isn't a need or reason to reject the request, and force a correction. &nbsp; The conversion program isn't the grammar police, just a conversion tool. &nbsp; I don't find fault with a program that rejects only but the correct spellings, I just feel it is less useful than a program that is more forgiving, and does, in effect, '''d'''o '''w'''hat '''I''' '''m'''ean (DWIM). &nbsp; As I understood the task's description, it is to convert value(s) from some temperature scale(s) to another set of scales. &nbsp; That it allows a user's feeble attempts at spelling is just a feature of the program. &nbsp; The fact that ''celcius'' is a common misspelling, it means that many people must be using it. &nbsp; Note that no misspelled words are shown in the (conversion) output except possibly for the input echo, the preferred spelling is used. -- [[User:Gerard Schildberger|Gerard Schildberger]] ([[User talk:Gerard Schildberger|talk]]) 07:40, 14 August 2013 (UTC)
 
::::::::: How about this then for my input of tc 10 Celsius to the modified program (Upper, as usual):
<pre>
------------------------------------------- 10 Celsius
10 Celcius
135 Delisle
etc.
</pre>
 
::::::::: ??? I'd rather tell people about errors they make (and I KNOW by experience you are doing that as well.) For an input of 10 Fahrenheit you show -12.222 Celcius thus propagating the misspelling. --[[User:Walterpachl|Walterpachl]] ([[User talk:Walterpachl|talk]]) 08:24, 14 August 2013 (UTC)
 
:::::::::: I hadn't noticed that I had Celcius in the output, it was a typo (and one would think that I would've caught that with all these conversations). -- [[User:Gerard Schildberger|Gerard Schildberger]] ([[User talk:Gerard Schildberger|talk]]) 08:39, 14 August 2013 (UTC)
 
:::::::: Should wp:Fahrenheit|Fahrenheit be wp:Degrees Fahrenheit|Fahrenheit ? What's the point of these tags? --[[User:Walterpachl|Walterpachl]] ([[User talk:Walterpachl|talk]]) 05:17, 14 August 2013 (UTC)
 
:: None of my dictionaries have celcius. I asked on my faforitefavorite English forum and got these responses:
<pre>
 
Line 52 ⟶ 67:
 
: Thanks Paddy. You mean 'computer languages' :-) and you know the answer to my wp question!?! (see above) --[[User:Walterpachl|Walterpachl]] ([[User talk:Walterpachl|talk]]) 05:28, 14 August 2013 (UTC)
 
Incorrect correction? This will never be true: if left(uU,6)=='DEGREES' --[[User:Walterpachl|Walterpachl]] ([[User talk:Walterpachl|talk]]) 10:25, 14 August 2013 (UTC)
 
:: Yes, I changed the wrong length. &nbsp; The surgery was a success, but the patient died. -- [[User:Gerard Schildberger|Gerard Schildberger]] ([[User talk:Gerard Schildberger|talk]]) 14:27, 14 August 2013 (UTC)
 
I changed several (obvious) misspellings but not all --[[User:Walterpachl|Walterpachl]] ([[User talk:Walterpachl|talk]]) 09:48, 16 August 2013 (UTC)
 
===temperatures below absolute zero===
Moved to a separate topic --[[User:Walterpachl|Walterpachl]] ([[User talk:Walterpachl|talk]]) 06:18, 16 August 2013 (UTC)
 
== Absolute Zero ==
 
Another chain (?) of thought: Shouldn't -3K (and other out of range temperatures) be rejected ??
<pre>
-------------------------------------------------- -3k
-276.15 Celcius
564.225 Delisle
</pre>--[[User:Walterpachl|Walterpachl]] ([[User talk:Walterpachl|talk]]) 09:09, 14 August 2013 (UTC)
 
:: In a news article [[http://www.rdmag.com/news/2013/01/temperature-below-absolute-zero|An R&amp;D Magazine Webcast]], it's possible to have temperatures below absolute zero according to physicists at the Ludwig-Maximilians University Munich and the Max Planck Institute of Quantum Optics in Garching. &nbsp; An interesting article concerning (among other things) the inversion of energy due to something called the Boltzmann distribution. -- [[User:Gerard Schildberger|Gerard Schildberger]] ([[User talk:Gerard Schildberger|talk]]) 14:58, 14 August 2013 (UTC)
 
::: I opened the link you gave but couldn't find anything there.
::: I did find this link though (learning something every day) http://www.livescience.com/25959-atoms-colder-than-absolute-zero.html and a sentence therein: "The temperatures we achieved are negative nanokelvin," Schneider told LiveScience. Maybe they'll never reach minus 3 K --[[User:Walterpachl|Walterpachl]] ([[User talk:Walterpachl|talk]]) 20:48, 14 August 2013 (UTC)
 
 
Are there -xK temperatures?
What range (also on the upper side) should be accepted?
Some programs check for k<0, others don't. --[[User:Walterpachl|Walterpachl]] ([[User talk:Walterpachl|talk]]) 06:18, 16 August 2013 (UTC)
 
: Nobody seems to care :-( --[[User:Walterpachl|Walterpachl]] ([[User talk:Walterpachl|talk]]) 20:34, 1 November 2013 (UTC)
 
:: As an aside, I choose to not check (in the REXX example) for those kinds of errors(?) &nbsp; (negative kelvins) as it detracts from the conversion part of the process. &nbsp; However, the presence of negative kelvins isn't for a fact, an error --- well, maybe yes, maybe no, could be, or might not be. &nbsp; The more error checking that is done, the more "clutter" or chaff in the program. &nbsp; In a complete working example, yes, that error check and others would be proper; &nbsp; ya can never to too careful when accepting data from the command line (C.L.) or via passed arguments/parameters. -- [[User:Gerard Schildberger|Gerard Schildberger]] ([[User talk:Gerard Schildberger|talk]]) 21:44, 2 December 2014 (UTC)
 
:: Also, there appears (as I understand it) an upper bound to temperatures, probably 1 (one) Planck. &nbsp; Of what little I know(?) about that temperature is, at 1º Planck, the laws of physics (or some of them?) seem to (start) breaking down. &nbsp; 1º Planck = 1.416833e+32 kelvins. &nbsp; If that can of worms is opened, I fear for us, the hoi polloi programmers (and amateur/wanna-be/armchair scientists/physicists). -- [[User:Gerard Schildberger|Gerard Schildberger]] ([[User talk:Gerard Schildberger|talk]]) 22:23, 2 December 2014 (UTC)
 
== Bonus ==
 
I think it would be nice to also have any-to-any conversion, <br>
i.e. also accept input-values in Celsius, Fahrenheit etc. <br>
and convert to all the other temperature-bases. --[[User:Hajo|Hajo]] ([[User talk:Hajo|talk]]) 13:37, 2 December 2014 (UTC
 
: An &nbsp; ''any-to-all'' &nbsp; is already done with the REXX example. -- [[User:Gerard Schildberger|Gerard Schildberger]] ([[User talk:Gerard Schildberger|talk]]) 21:31, 2 December 2014 (UTC)
 
: An &nbsp; ''any-to-any'' &nbsp; has been written (in REXX) and <strike>will be</strike> has been posted to Rosetta Code <strike>soon</strike>. -- [[User:Gerard Schildberger|Gerard Schildberger]] ([[User talk:Gerard Schildberger|talk]]) 21:31, 2 December 2014 (UTC)) --updated-- [[User:Gerard Schildberger|Gerard Schildberger]] ([[User talk:Gerard Schildberger|talk]]) 01:05, 3 December 2014 (UTC)
 
==spelling of kelvins==
 
From the USMA (United States Metric Association):
 
The '''kelvin (K)''' temperature scale is an extension of the degree Celsius scale down to absolute zero, a hypothetical temperature characterized by a complete absence of heat energy. &nbsp; Temperatures on this scale are called '''kelvins''', NOT degrees kelvin, kelvin is ''not'' capitalized, and the symbol (capital K) stands alone with no degree symbol. &nbsp; [The official name was changed to "kelvin" and symbol "K" by the 13th General Conference on Weights and Measures (CGPM) in 1967.]
 
In light of this, perhaps the author of this Rosetta Code task (or anybody) would like to correct the spelling and/or capitalization of the task's wording. -- [[User:Gerard Schildberger|Gerard Schildberger]] ([[User talk:Gerard Schildberger|talk]]) 01:33, 3 December 2014 (UTC)
 
: There seems to be a lot of disagreement about it: [http://physics.stackexchange.com/questions/114079/are-there-reasons-for-the-discrepancies-in-absolute-temp-units-kelvin-vs-kelv physics.stackexchange.com] [[User:Fwend|Fwend]] ([[User talk:Fwend|talk]]) 18:33, 9 April 2016 (UTC)
Anonymous user