How can I analyse data stored in Mathematica using Wolfram | Alpha? Here is an example:

I have a list: a = {1, 2, 3, 4, 5}

I can plot it in Mathematica, like this:

enter image description here

But once I try to use Wolfram | Alpha, an error message appears:

enter image description here

How can I perform different types of analyses on Mathematica data using Wolfram | Alpha?

  • $\begingroup$ Try = List plot of {1,2,3,4,5} $\endgroup$ – RunnyKine Mar 1 '13 at 4:03
  • $\begingroup$ I edited your question quite heavily to make it more clear, and to correct the grammar. Please verify that it is still asking what you wanted to ask. $\endgroup$ – Szabolcs Mar 1 '13 at 4:25

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 of x from -3 to 3"

Interestingly, if you send the following = a + 2 to WolframAlpha, it returns the correct result, adding 2 to each element of a. But using a in place of the list in the free-form input seems to confuse WolframAlpha.

| improve this answer | |
  • 2
    $\begingroup$ I think the gist of the question is: how can we transfer data present in Mathematica to Wolfram|Alpha? That is, use the variable a directly. (I don't think it's directly possible, at least not without W|A Pro (??)) $\endgroup$ – Szabolcs Mar 1 '13 at 4:23
  • $\begingroup$ @Szabolcs see my edit above. It works partially. $\endgroup$ – RunnyKine Mar 1 '13 at 4:25
  • $\begingroup$ Interesting observation, and +1 for that! $\endgroup$ – Szabolcs Mar 1 '13 at 4:25
  • $\begingroup$ It seems W|A is very quirky: if you give the list a longer name, it'll recognize it: mylist = {1, 2, 4, 8, 20}, = plot mylist. But the plot won't exactly be what you'd expect ... $\endgroup$ – Szabolcs Mar 1 '13 at 4:43
  • 2
    $\begingroup$ @Szabolcs I'm not sure that W|A has syntax at all - let alone "reliable syntax". :) $\endgroup$ – Mark McClure Mar 1 '13 at 4:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.