Error when trying to integrate
This is what I want to do in Sage. It can be done very easily in Desmos. https://www.desmos.com/calculator/7oc...
I am just trying to do this integral in Sage. When I do it the answer I get is
f(x) = (1/3.33sqrt(2pi))exp((-1/2)((x-9.486)/3.33)^2)
N(definite_integral(f(x), x, 6, 23))
5.35572539176154
Don't use "N": just use
2*pi
andexp(...)
.I did the changes, now I get a wrong answer.
I think the problem is parentheses, not Sage.
1/3.33 * sqrt(2*pi)
is equal tosqrt(2*pi)/3.33
, whereas I think you meant to have all of that in the denominator. So you need parentheses:1/(3.33 * sqrt(2*pi))
, as in @eric_g's answer.