Tag Info

Hot answers tagged

16

apple = Interpreter["Company"]["Apple"]["Image"] Interpreter["Company"]["GE"]["Image"] Also works for the continent and respects colours: Interpreter["Company"]["Siemens"]["Image"] Update Interpreter["Company"]["Wolfram"]["Image"] For Apple addicts: ImageFilter[Max[Flatten[#]] - Min[Flatten[#]] &, ...


12

Another variation: SemanticInterpretation["AAPL Logo"] This method is nice because you can do at once: logos = SemanticInterpretation["AAPL, TSLA, GE and MSFT Logos"]; Column[logos, Frame -> All, FrameStyle -> Directive[Red, Thick]]


10

Use Interpreter without federal state or country. Works even for small german towns :) Interpreter["City"]["Memmingen"] GeoPosition[%] GeoGraphics[%] EDIT: Also you could ask for the airport: town = Interpreter["City"]["Memmingen"]; airport = Interpreter["Airport"]["Memmingen"]; GeoPosition[{town, airport}] or just use the nearest airport ...


10

You could use the official ICAO abbreviation: Entity["Airport", "KLAX"] which makes sense because you will only be able to use officially named airports most of the time anyway. You can always get those (or the city details) via a W|A query and work your way from there (no googling involved): or like this (although it misses Van Nuys):


9

QuantityMagnitude[WolframAlpha[#, {{"Result", 1}, "ComputableData"}]] & /@ {"Apple company revenue", "Apple company interest expense", "Apple company employees"} (* {1.828*10^11, 3.84*10^8, 97000} *) Update: Exchange rate conversion WolframAlpha[#, {{"Result", 1}, "ComputableData"}] & /@ {"Sony company revenue", "Sony company interest ...


8

The following may be useful as starters: WolframAlpha["femme from french to german",{{"Translation:TranslationData", 1}, "ComputableData"}] (* {" Frau | Ehefrau", " Frau"} *)


8

The problem seems to be that many companies, even some of the biggest, well known firms are not known in Entity["Company","name"] form to Mathematica. This holds for companies like Apple, Microsoft, General Electrics etc. I believe that CompanyData needs entities to be of this form. If you want to discover a company's entity representation using W|A ...


8

You can set the options for WolframAlpha in the usual way. The option to change is: SetOptions[WolframAlpha, PodStates -> {"Show metric"}] as for me (for whatever reason) it was the default to show metric units, I could verify with: SetOptions[WolframAlpha, PodStates -> {"Show non-metric"}] that this seems indeed to affect also the answers to the ...


8

Calling Wolfram|Alpha is not generally an efficient way to retrieve bulk data; where possible, it is better to use a built in data function. Part of the problem is figuring out what to submit to Wolfram|Alpha. In the code you supplied, the issue begins with Wolfram|Alpha returning Missing[NotAvailable]. WolframAlpha["AAPL ...


8

Though WolframAlpha understands some basic Mathematica syntax, that is simply not it's first objective, namely to attempt to understand natural language input. Thus, rather than typing Integrate[x*Sin[x],{x,0,Pi}] one may type some variant of integrate xsinx x,0,pi The results, whether obtained via the web interface or right in notebook, are ...


6

In Mathematica 10, this tells you the number of calls remaining in your cloud account if you are logged in: CloudAccountData["WolframAlphaCallsAvailable"] 2168


5

Something like this? WolframAlpha["apple logo", "PodImages", IncludePods -> "Image:FinancialData"]


5

If you don't want Mathematica to use Wolfram | Alpha for correcting incorrect units, you can just set $AllowInternet = False. The downside of this is that it also blocks internet access for the curated data functions such as WeatherData, FinancialData, etc. You can also use Block to disallow internet only within your function.


4

A properly formatted Quantity expression should work just fine, without trying to connect to WolframAlpha servers for conversion. For example, Quantity[1, "Feet"] + Quantity[2, "Inches"] should run with or without internet connectivity. In contrast, Quantity[1, "Foot"] + Quantity[2, "Inches"] will attempt to contact WA servers in an attempt to ...


4

This issue should now be resolved. If it isn't, please try restarting Mathematica, and try your input again. If this still fails, then please post the output of: PacletInformation["WolframAlphaClient"]


3

First, you should understand that WolframAlpha does not simply execute Mathematica code as typed. Rather, there is a parsing stage. And the two parses are simply different in this case. We can see this by taking a closer look in Mathematica: WolframAlpha["x = 10; N[ 2 Pi (x -11/8)/LambertW[(x -11/8)/E]]", {{"Result", 1}, "ComputableData"}] (* Out: ...


3

Plot[2 x - Sinh[x], {x, -Pi, Pi}] FindRoot[2 x == Sinh[x], {x, #}] & /@ {-2, 0, 2} {{x -> -2.17732}, {x -> 0.}, {x -> 2.17732}}


3

I have no idea why DateListPlot does not work with Quantity. Perhaps it's a bug? But the workaround is very easy: using pattern replacements we extract the numerical values. DateListPlot[nominal /. Quantity[x_, _] :> x, FrameLabel -> {"year", "$ per year"}] Browsing through the help, another option is QuantityMagnitude. ...


2

You can find the exchanges Mathematica knows about using: FinancialData["Exchanges"] From this you can extract the main London exchange name which is , "LSE". Then you can retrieve the available quoted entities: FinancialData["LSE", "Members"] Amongst those you will hopefully find most of the symbols which comprise the indices you might be interested ...


2

Before we look at how to generate the textual form, let's correct a syntax error in your code; function application in Mathematica is indicated by square brackets, so Sin(x + y) in your integral must replaced Sin[x + y]. With this change your integral evaluates correctly: We verify that the above is correct by taking the derivative with respect to ...


2

LinearModelFit[{{0,4},{4,20}},{1,x},x] worked for me


2

The currently accepted answer does not seem to be valid as of July 2014. I tested WolframAlpha calls with the following: properties = {"Abbreviation of ", "Alternate Names for ", "Atomic Number of ", "Atomic Radius of ", "Atomic Weight of ", "CAS Number of ", "Heat of fusion of ", "Stable Isotopes for ", "Universal abundance of ", "Discovery Year of ...


2

D[x^2 + x y[x] == 5, {x, 1}] sol1 = Solve[%, y'[x]] D[x^2 + x y[x] == 5, {x, 2}] sol2 = Solve[%, y''[x]] sol2 /. sol1 // Simplify


2

Thanks to your nice answers and comments I found a solution to my problem: FlightPath[cities_List, pro_: "AzimuthalEquidistant"] := Module[{lc = Length@cities, color, dest, dist, entity, legend, pair, path}, color = {Red, Darker@Green, Blue, Black, Orange, Purple}; entity = Interpreter["City"][#] & /@ cities; dest = GeoPosition@First@entity; ...


1

Thanks to kguler's marvelous solution I was able to write a little translation program. Due to a certain unreliability of WolframAlpha results it is far from being perfect, but fun to play with. ToWords[res_] := DeleteDuplicates @ StringTrim @ Flatten @ Map[StringSplit[#, "|"] &, res] Translator[word_, from_, to_] := ToWords @ WolframAlpha[word ...


1

Wolfram Alpha gives the following information: UnitConvert[Quantity[1, "$"], "\[Euro]"] Quantity[0.772082, "Euros"] 370.24 / 0.772082 479.535 (* USD per BitCoin *) Actual quotation of one broker: 478.37 USD per BitCoin. All this is coherent. The only remaining question for me: Why aren't BitCoin rates shown by UnitConvert? Maybe because ...


1

Although this is indeed a W|A question (take a look at the help center), here's several options for you. Inputting Simplify[-cos(n*pi)/(n*pi)] assuming n integer Gives this - link #1 -((-1)^n/(n Pi)) $$-\frac{(-1)^{n}}{n \pi}$$ As noted by @m_goldberg, inputting this also gives the same answer - link #2 simplify -cos (n*pi)/(n*pi) assuming n ...


1

As suggested by kguler, using Piecewise is easiest; however, you can also use Show or Boole. Show[ Plot[(2*x), {x, 1, 3}], Plot[(x^2), {x, 3, 5}], PlotRange -> All, AxesOrigin -> {0, 0}] Plot[ 2 x Boole[1 < x < 3] + x^2 Boole[3 < x < 5], {x, 0, 5}, AxesOrigin -> {0, 0}, PlotStyle -> Red]


1

The functionality to download the components of the FTSE 100 used to be available in Yahoo Finance, but it is not available anymore. E.g. Download a CSV of the constituents of the FTSE-100 from Yahoo Finance FinancialData uses Yahoo, so that explains why it doesn't work. Finding another source from which to download a list has proved tricky. There is a ...


1

What you want to do is to interpolate between values, WA understood this easily:



Only top voted, non community-wiki answers of a minimum length are eligible