Hot answers tagged wolfram-alpha-queries
23
This shows a way to parametrise a line using the method suggested by Rahul Narain in a comment, i.e. using Fourier to approximate the data with a set of sinusoids. I use Rationalize to convert all the reals back to rationals, this isn't necessary but it makes the expression look more like those used in Wolfram Alpha.
param[x_, m_, t_] := Module[{f, n = ...
20
Perhaps this helps:
The WolframAlpha function is limited to 1,000 API calls per day for
professional Premier Service subscribers (500 API calls per day for
student and classroom Premier Service subscribers), and 100 API calls
per day for all other users, unless an API upgrade is purchased.
12
The idea
The idea is that if we have
$\log(a+b),\qquad a\gg b$ ,
then we can equivalently write this as
$\log a + \log(1 + b/a)$
and the second part will be small, so that one can first compare the first part(s). The power towers with base numbers larger than 1 naturally lead to such logarithms when we repeatedly take the $\log$ of them. So, there ...
10
This now has been discussed in Wolfram blog post by Michael Trott:
Making Formulas… for Everything—From Pi to the Pink Panther to Sir Isaac Newton
Here is one of the example apps from blog - go read it in full - fun! Don't miss the link to download the notebook with complete code and apps at the end of the blog.
8
This was supposed to be a comment to Simon's answer, but it's gotten too long. Still, I wanted to share a somewhat cleaned-up version of Simon's Fourier-fitting function param[] (which I have renamed to FourierCurve[]):
FourierCurve[x_, m_, t_, tol_: 0.01] := Module[{rat = Rationalize[#, tol] &, fc},
fc = Take[Chop[Fourier[x, FourierParameters -> ...
8
Wolfram|Alpha is integrated in Mathematica. Integration based on function WolframAlpha. To learn basic interactive and programmatic usage see this question. In your case you can get formatted objects in Mathematica like:
WolframAlpha["steam 135C", {{"PhaseDiagramTPPlot:ChemicalData", 1}, "Content"},
PodStates ...
7
I'm not sure whether this is what you seek, but you can use Trace to investigate in a call to Quantity. Then you extract the essence
Quantity["Newtons"];
StringReplace[Names["CalculateUnits`UnitCommonSymbols`*"],
"CalculateUnits`UnitCommonSymbols`" ~~ r_ :> r]
and you get some kind of list ;-)
7
The bug is probably with Wolfram Alpha, not Mathematica, since the Mathematica query and the Wolfram Alpha website results are consistent.
(Edit: Bug is fixed as of 2012-11-26, I got a kind notification from the W|A team in response to my earlier feedback)
It looks like they swapped longitude with latitude for Upper Austria (it works with good ole Austria ...
7
You can access historical GPD data via the WolframAlpha command like so:
gdpData = WolframAlpha["us gdp",
{{"History:GrossDomesticProduct:EconomicData",1},"ComputableData"}];
This returns quarterly data going back to 1947 in a structured list. You can manipulate the data just as you would any data in Mathematica. Thus, you can get the data points at ...
6
I'm using 8.0.4 and I get reasonable results (notice the constraint c>0) :
nlm = NonlinearModelFit[data, {a + b Log[c x], c > 0}, {a, b, c}, x] ;
nlm // Normal
(* 0.0740508 - 0.00391526 Log[1.0714 x] *)
FindFit[data, {a + b Log[c x], c > 0}, {a, b, c}, x]
(* {a -> 0.0740508, b -> -0.00391526, c -> 1.0714} *)
Show[Plot[nlm[x], {x, 10, ...
5
I can't say that all the Alpha Pro features are available through V8 of Mathematica, but certainly many are. Here are three examples:
Type "derivative of x^2" into Alpha. If you are not logged into the Pro version, you will be unable to access the result, other than as a visual image. In particular, you can't easily copy and paste results.
Or try, just ...
4
Oh, I was going to say the same thing. Here's a picture instead of me clicking in the little screw icon...
This pastes the query into your document (and runs it too):
WolframAlpha["Sunrise june 25, 2013", {{"DaylightInformation", 1},
"ComputableData"}]
Then I assigned the results to a symbol for further processing.
4
WolframAlpha["Sunrise june 25, 2013", {{"DaylightInformation", 1},
"ComputableData"}, PodStates -> {"DaylightInformation__More"}]
gives
{{"begin astronomical twilight",
"3:56 am PDT"}, {"begin nautical twilight",
"4:40 am PDT"}, {"begin civil twilight", "5:18 am PDT"}, {"sunrise",
"5:49 am PDT"}, {"sunset", "8:33 pm PDT"}, {"end ...
4
1) Tap twice = on a new line
2) After orange Spiky type: city in orange county, california
3) Press button MORE till you get al cities
4) Click little cross in the right top corner of the cities panel and choose from the sub-menu: Commutable Data
This is what you get (it may look cumbersome but the point is you don't have to type it - the code is ...
4
WeatherData[] can give you what you want:
startdate = DateList[];
city = "Amsterdam"
startpoint = 5 (*hours ago: for amsterdam, the most recent data was not available...*)
range = 48 (*in hours*)
data = WeatherData[city,"Temperature", #] & /@
(DatePlus[DateList[], {-#, "Hour"}][[1 ;; 4]] & /@ Range[startpoint, range]);
For some reason WeatherData ...
3
I had a similar problem. I was able to resolve it by having MMA recreate configuration files under $BaseDirectory and $UserBaseDirectory. There is a description of the process at http://support.wolfram.com/kb/3274. It is important that you backup any of your own files in these directories prior to resetting the configuration. I can't guarantee this will fix ...
3
For your specific example, the following does what you want:
= List plot of {1,2,3,4,5}
But in general don't send WolframAlpha inputs as though you're using Mathematica. Just send free-form linguistic input i.e. plain English (or other languages it understands). For example, to plot the Sine function don't type Plot[Sin[x],{x,-3,3}]
just type "plot sin ...
3
Well, let's look at the limited good news first. While I don't believe there's any way to specify a single simple parameter indicating that you want to return all the data available, it is possible to programatically specify the number of pushes that you want using Table["More ...",{k}]. Typically, you can simulate lots of pushes and the output will be ...
3
Although WolframAlpha is a pretty clever engine it has troubles when dealing with ambiguous information. In your example, WolframAlpha interprets "Bills" as a given name, "Texans" as a US state and "Cardinals" as a MLB team.
By just adding "NFL" in your query you get the schedules of all teams:
Table[WolframAlpha[
TeamNames[[i]] <> " in 2010 ...
2
When you say price what do you mean ? Are you talking about retrieving historical market prices for securities i.e shares or are you talking about more complex pricing such as options, futures etc ? You can use the FinancialData[] function to obtain financial data. I would take a subset of your securities and explore FinancialData[] to see what data is ...
2
Well, I'm not sure if you could get historical financial highlights from any place rather than SEC itself...
If you want to find historical annual reports per company, please use the following link (remember to substitute "microsoft" with your desired company name):
http://www.sec.gov/cgi-bin/srch-edgar?text=microsoft+10-K&first=2003&last=2013
But ...
2
The WolframAlpha function gives to access to Wolfram|Alpha in Mathematica. Just like the Wolfram|Alpha web interface, there is a time limit on calculations. Also, you can't run arbitrary Mathematica programs. You need to use the "standard" W|A inputs.
While you can extend the time limit by subscribing to W|A Pro, I think what you are looking for is cloud ...
1
The following command returns W|A's most recently recorded temperature at your location.
WolframAlpha["temperature", {{"Result", 1}, "ComputableData"}]
(* Out: {48, "(53 minutes ago)"} *)
To evaluate this periodically and store it in a a function value, use the *ScheduledTask commands. For example, the following creates a task which executes the above ...
1
It's worth understanding that WolframAlpha is not a direct interface to Mathematica. Even if you type an exact Mathematica command, WolframAlpha will parse it and interpret it - perhaps in a different way. For example, the following two WolframAlpha inputs yield the exact same results:
Furthermore, none of those results matches the output of ...
Only top voted, non community-wiki answers of a minimum length are eligible

