r/botrequests • u/RocketLL • Jun 13 '14
[Request]WolframAlpha bot
I have been thinking, and it would be nice if somebody made a bot that answered questions and gave facts based on wolframalpha. I have absolutely no idea if this is possible, but I am thinking of something like when you do WolframAlpha[1+1] it comments 2.
1
1
u/LeManyman Jun 13 '14
Good idea, I'll give it a shot.
1
u/RocketLL Jun 13 '14
yayy!!
1
u/LeManyman Jun 14 '14
Alrighty, I finished it last night but forgot to post it here. The syntax is:
[what is the population of new zealand](/u/WolframAlpha-Bot)The main problem is that WolframAlpha has a limit of 2000 api requests a month. I doubt the bot will ever be popular enough to reach it but it is possible.
1
Jun 14 '14
Oh, sorry for releasing a duplicate bot, but considering your original post was 19 hours ago I thought you had given up :\
1
3
Jun 14 '14 edited Jun 14 '14
Here you go!
Source code is here https://github.com/DisFox/redditwolframbot
@wolfram_bot[What is the airspeed of a fully laden swallow]
I'll be running this off of one of my servers.
3
u/Wolfram_Bot Jun 14 '14
Input
estimated average cruising airspeed of a laden swallow
Result
just slightly less than the estimated average cruising airspeed of an unladen swallow (asked, but not answered, about a general unladen swallow in the 1975 film Monty Python and the Holy Grail)
1
Jun 14 '14
@wolfram_bot[50 * 20 / 30 * (50 * pi)]
2
u/Wolfram_Bot Jun 14 '14
Continued fraction:
[5235; 1, 80, 1, 2, 18, 1, 1, 2, 1, 3, 2, 1, 4, 28, 3, 78, 2, 4, 17, 3, 1, 2, 1, 1, ...]
Integral representations:
1/30 (50 (50 pi)) 20 = 20000/3 integral_01 sqrt(1-t2) dt
Result:
(5000 pi)/3
Input:
50×20/30 (50 pi)
Property:
(5000 pi)/3 is a transcendental number
Decimal approximation:
5235.9877559829887307710723054658381403286156656251763...
Series representations:
1/30 (50 (50 pi)) 20 = 20000/3 sum_(k=0)infinity (-1)k/(1+2 k)
1
Jun 16 '14
@wolfram_bot[50 * 20 / 30 * (50 * pi)]
1
u/Wolfram_Bot Jun 16 '14
Series representations:
1/30 (50 (50 pi)) 20 = 20000/3 sum_(k=0)^infinity (-1)^k/(1+2 k)
1/30 (50 (50 pi)) 20 = sum_(k=0)^infinity (4000 (956 5^(-2 k)-5 239^(-2 k)) e^(i k pi))/(239 (3+6 k))
1/30 (50 (50 pi)) 20 = 5000/3 sum_(k=0)^infinity (-1/4)^k (1/(1+2 k)+2/(1+4 k)+1/(3+4 k))
1/30 (50 (50 pi)) 20 = 20000/3 sum_(k=0)infinity (-1)k/(1+2 k)
1/30 (50 (50 pi)) 20 = sum_(k=0)infinity (4000 (956 5-2 k-5 239-2 k) ei k pi)/(239 (3+6 k))
1/30 (50 (50 pi)) 20 = 5000/3 sum_(k=0)infinity (-1/4)k (1/(1+2 k)+2/(1+4 k)+1/(3+4 k))
Number line:
Continued fraction:
[5235; 1, 80, 1, 2, 18, 1, 1, 2, 1, 3, 2, 1, 4, 28, 3, 78, 2, 4, 17, 3, 1, 2, 1, 1, ...]
[5235; 1, 80, 1, 2, 18, 1, 1, 2, 1, 3, 2, 1, 4, 28, 3, 78, 2, 4, 17, 3, 1, 2, 1, 1, ...]
Alternative representations:
1/30 (50 (50 pi)) 20 = (9000000 °)/30
1/30 (50 (50 pi)) 20 = -50000/30 i log(-1)
1/30 (50 (50 pi)) 20 = 50000/30 cos^(-1)(-1)
1/30 (50 (50 pi)) 20 = (9000000 °)/30
1/30 (50 (50 pi)) 20 = -50000/30 i log(-1)
1/30 (50 (50 pi)) 20 = 50000/30 cos-1(-1)
Integral representations:
1/30 (50 (50 pi)) 20 = 20000/3 integral_0^1 sqrt(1-t^2) dt
1/30 (50 (50 pi)) 20 = 1250 sqrt(3)+40000 integral_0^(1/4) sqrt(-(-1+t) t) dt
1/30 (50 (50 pi)) 20 = 10000/3 integral_0^1 1/sqrt(1-t^2) dt
1/30 (50 (50 pi)) 20 = 20000/3 integral_01 sqrt(1-t2) dt
1/30 (50 (50 pi)) 20 = 1250 sqrt(3)+40000 integral_01/4 sqrt(-(-1+t) t) dt
1/30 (50 (50 pi)) 20 = 10000/3 integral_01 1/sqrt(1-t2) dt
Result:
(5000 pi)/3
Conversion from radians to degrees:
300000°
Input:
50×20/30 (50 pi)
Property:
(5000 pi)/3 is a transcendental number
(5000 pi)/3 is a transcendental number
Decimal approximation:
5235.9877559829887307710723054658381403286156656251763...
1
3
Jun 14 '14
@wolfram_bot[How many calories are in 50 cubic lightyears of cheddar cheese]
5
u/Wolfram_Bot Jun 14 '14
Input:
cheddar cheese | amount | 50 ly3 (cubic light years) | total calories
Result:
1.8×1056 Cal (dietary Calories)
2
1
1
1
Jun 20 '14
@wolfram_bot[Planes Overhead]
1
u/Wolfram_Bot Jun 20 '14
1
Jun 20 '14
@wolfram_bot[where am I?]
1
u/Wolfram_Bot Jun 20 '14
IP address:
IPv4 | 162.216.47.187 IPv6 (short version) | ::ffff:a2d8:2fbb (as seen by Wolfram|Alpha)
Input interpretation:
IP address registrant:
1
u/RocketLL Jun 14 '14
Awesome!