wolframalpha

how to specify domain of a function in wolfram alpha

六眼飞鱼酱① 提交于 2021-02-08 12:47:05
问题 Is there a way to specify the domain for a function in wolfram alpha? I have a function which I want to plot. I want to restrict the function f(x,y) = xy(3-x-y) to x>=0, y>=3 and y <=3-x 回答1: You can specify boundaries of the function parameters in Wolfram Alpha. They are more of a hint to the plotting library how much to scale the plot than exact boundaries, so in your case y is not calculated only with a value of 3. Although the boundaries in your case do not make much sense, as noted by

Wolfram Alpha Python API not working

谁都会走 提交于 2020-01-06 18:37:38
问题 I'm using Python 3.6 on MacOS Sierra 10.12.3. I installed wolframalpha , and made sure my app id is valid (it works fine with URL requests using RESTful), yet I still get this error when I try and run the example from Wolfram's own documentation. import wolframalpha client = wolframalpha.Client('xxxxxx-xxxxxxxxxxx') res = client.query('temperature in Washington, DC on October 3, 2012') Gives me these errors: Traceback (most recent call last): File "/Library/Frameworks/Python.framework

Divergent Integral in R is solvable in Wolfram

半腔热情 提交于 2019-12-31 07:34:06
问题 I know that I asked the same question before, but as I am pretty new here the question was asked poorly and not reproducible. Therefore I try to do it better here. (If I only edit the old one probably nobody will read it) I have this double integral that I would like to integrate:Here is a picture ff<-function(g,t) exp((16)*g)*exp(-8*t-(-t-0.01458757)^2/(0.0001126501)) integrate(Vectorize(function(t) integrate(function(g) ff(g,t), -2.5,0)$value), -2, 2) Running this in R gives me the error:

Check if two math answers are equivalent

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-23 19:53:33
问题 I'm writing a small app in python which lets users answer math questions. The problem I'm having is checking their answers. Say there's a question like: "Factorise x^2 + 3x +2 " There are different ways to answer this; for example: (x + 1)(x + 2) (x + 2)(x + 1) (2 + x)(x + 1) etc. Is there a library which will check if an answer is equivalent to another? Particularly one which doesn't simplify the given answer; so: (x + 1)(x + 2) === (2 + x)(x + 1) But (x + 1)(x + 2) !== x^2 + 3x +2 I thought

Plot a polynomial function like on the wolframalpha-website so that it is easy to understand

纵然是瞬间 提交于 2019-12-22 05:41:30
问题 Plotting a function in the wolfram-alpha-website looks like this: http://www.wolframalpha.com/link Plotting the same function in R looks like this: plot( function(x) x^2 - 3*x - 10 ) The default plot from Wolfram is much easier to understand. I think this is because it shows the x-axis (at y=0), and centers the parabola. I am not good enough at math to just look at the formula of a function and see where I should center the plot, and I am plotting the functions to learn about how different

Plot a polynomial function like on the wolframalpha-website so that it is easy to understand

倖福魔咒の 提交于 2019-12-22 05:41:17
问题 Plotting a function in the wolfram-alpha-website looks like this: http://www.wolframalpha.com/link Plotting the same function in R looks like this: plot( function(x) x^2 - 3*x - 10 ) The default plot from Wolfram is much easier to understand. I think this is because it shows the x-axis (at y=0), and centers the parabola. I am not good enough at math to just look at the formula of a function and see where I should center the plot, and I am plotting the functions to learn about how different

How should the interquartile range be calculated in Python?

时间秒杀一切 提交于 2019-12-21 05:04:11
问题 I have a list of numbers [1, 2, 3, 4, 5, 6, 7] and I want to have a function to return the interquartile range of this list of numbers. The interquartile range is the difference between the upper and lower quartiles. I have attempted to calculate the interquartile range using NumPy functions and using Wolfram Alpha. I find all of the answers, from my manual one, to the NumPy one, tothe Wolfram Alpha, to be different. I do not know why this is. My attempt in Python is as follows: >>> a = numpy

Normalize data according to business entity (Legal name, class of business, DNS domain, company type) [closed]

99封情书 提交于 2019-12-19 05:09:14
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . I'm trying to normalize data and link records according to legal business entity name. Where can I determine the legal business name, and general information about that company? I will have at least one of the following: Stock symbol, DBA (short name), dns name, or full legal name. So far I've discovered that

Python decimal.Decimal precision doesn't match wolfram alpha's

▼魔方 西西 提交于 2019-12-05 18:32:48
I have the following python code: In [1]: import decimal In [2]: decimal.getcontext().prec = 80 In [3]: (1-decimal.Decimal('0.002'))**5 Out[3]: Decimal('0.990039920079968') Shouldn't it match 0.99003992007996799440405766290496103465557098388671875 according to this http://www.wolframalpha.com/input/?i=SetPrecision%5B%281+-+0.002%29%5E5%2C+80%5D ? Wolfram alpha is actually wrong here. (1 - 0.002) ** 5 is exactly 0.990039920079968 . You can verify that by simply assessing that there are 15 digits after the . , which matches 5 * 3 , 3 being the number of digits after the . in the expression (1 -

Plot a polynomial function like on the wolframalpha-website so that it is easy to understand

元气小坏坏 提交于 2019-12-05 06:13:47
Plotting a function in the wolfram-alpha-website looks like this: http://www.wolframalpha.com/link Plotting the same function in R looks like this: plot( function(x) x^2 - 3*x - 10 ) The default plot from Wolfram is much easier to understand. I think this is because it shows the x-axis (at y=0), and centers the parabola. I am not good enough at math to just look at the formula of a function and see where I should center the plot, and I am plotting the functions to learn about how different functions create different lines, so I need this centering to be done automatically, because otherwise I