ezequielc / chromey-calculator

Automatically exported from code.google.com/p/chromey-calculator
1 stars 0 forks source link

WolframAlpha output format "3 kg (kilograms)" seen as "3 kg^2" when used as input #84

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

3 mol Na kg =
0.069 kg (kilograms)

@/3 =
(0.069 kg (kilograms))/3 =
0.023 kg^2

What is the expected output?

0.023 kg

What do you see instead?

0.023 kg^2

What version of Chrome are you using?

7.0.517.44

What operating system are you using?

Win XP

What country are you in?

Brazil

Please provide any additional information below.

davizaun@hotmail.com

Original issue reported on code.google.com by davizaun...@gmail.com on 25 Nov 2010 at 2:34

GoogleCodeExporter commented 9 years ago
This is a side-effect of the way WolframAlpha returns results. We currently 
just use the exact text of the last result (whether the result is from Google 
or Wolfram) when expanding the "@" variable. You'd get the same problem if you 
manually typed in something like that without using the "@" variable.

Since Wolfram often returns things like "0.069 kg (kilograms)", which is 
another way of writing "0.069 kg^2", and since WolframAlpha does not recognise 
its own answer syntax, people are getting bad results unless they manually 
remove the parenthesised portion. Strongly interferes with use of the "@" 
variable. Also interferes with new calculations when people insert a prior 
result by clicking one of the results in the scrollback buffer.

Original comment by iisi50...@gmail.com on 1 Dec 2010 at 6:59