NIntegrate(cos(x), {x, 0, pi}) should return 0,but return 1.3465790982269965E-16

Issue #118 resolved
zhoukang created an issue

maybe we can check the integrate first ,if has F(x),just subtract F(a)-F(b) and return?

Comments (4)

  1. Axel Kramer repo owner

    I implemented this commit: 3cbcffb

    You can now set a PrecisionGoal like this:

    NIntegrate(1/Sin(Sqrt(x)), {x, 0, 1}, PrecisionGoal->10)
    

    The default PrecisionGoal is set to 16

  2. Log in to comment