Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #6943
| From | Dave M <cvk1812@hotmail.com> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Need help integrating Wolfram Alpha data in Mathematica |
| Date | 2011-12-05 10:29 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <jbi6df$51h$1@smc.vnet.net> (permalink) |
I'm using Wolfram Mathematica 8, and I have a question about using Wolfram Alpha data in my calculations.
What I would like to do is to pull data from the Wolfram Alpha search engine, and then store it in a Mathematica variable for future use. I cannot figure out how to do this easily.
To illustrate what I mean, here's a simple example. Let's say I want the mass of a proton in kilograms. I can obtain this by simply typing "== mass of proton in kilograms", upon which Mathematica contacts the Wolfram Alpha server, and downloads a lot of data.
This data doesn't only contain the actual number I wanted, it is actually a huge table with many cells containing information about how Wolfram Alpha parsed my query, the assumptions used, conversions of the answer to various other units, etc.
However, all I wanted was simply the answer to my query in a computable numeric form, so I could store that in a variable in Mathematica.
I can get somewhat usable results if I do something like this:
WolframAlpha["mass of proton in kilograms", {{"Result", 1},
"ComputableData"}]
However, this is a pretty complicated way of doing something really simple. Is there some simpler method that involves much less typing?
Back to comp.soft-sys.math.mathematica | Previous | Next — Next in thread | Find similar | Unroll thread
Need help integrating Wolfram Alpha data in Mathematica Dave M <cvk1812@hotmail.com> - 2011-12-05 10:29 +0000 Re: Need help integrating Wolfram Alpha data in Mathematica Fred Klingener <jfklingener@gmail.com> - 2011-12-08 10:28 +0000
csiph-web