JuliaMath / Calculus.jl

Calculus functions in Julia
Other
278 stars 76 forks source link

Error with numerical integration #78

Closed bcameron43 closed 8 years ago

bcameron43 commented 8 years ago

Obviously, these don't add up correctly. julia> f(x) = x^3*exp(-x^2/2)/2 f (generic function with 1 method) julia> integrate(f,0,20) 1.0000000000107998 julia> integrate(f,20,30) 4.30545586095874e-84 julia> integrate(f,0,30) 1.3729357524611979e-9

johnmyleswhite commented 8 years ago

Don't use that function. We're going to remove it completely.

Use the quadgk function instead.

mlubin commented 8 years ago

@johnmyleswhite, time to deprecate it?

johnmyleswhite commented 8 years ago

Yes, I'm just overwhelmed at work this week, so I doubt I'll be able to write a PR. But we should completely bail on integration ASAP.

bcameron43 commented 8 years ago

Thanks