NIntegrate gives wrong result

Issue #104 resolved
Axel Kramer repo owner created an issue

NIntegrate gives wrong result.

Example:

>>> NIntegrate[1/(x^2), {x, 1, 1000}]
0.10453108224782834

Comments (2)

  1. Axel Kramer reporter

    Commited this change:

    https://bitbucket.org/axelclk/symja_android_library/commits/0403a6442cea8f5db2cd36109b7bf68629ee03c8

    Examples:

    NIntegrate(1/(x^2), {x, 1, 1000}, Method->LegendreGauss, MaxPoints->100) 
    
    NIntegrate((x-1)*(x-0.5)*x*(x+0.5)*(x+1),{x,0,1},Method->Trapezoid) 
    
    NIntegrate((x-1)*(x-0.5)*x*(x+0.5)*(x+1),{x,0,1},Method->Simpson) 
    
    NIntegrate((x-1)*(x-0.5)*x*(x+0.5)*(x+1),{x,0,1},Method->Romberg, MaxIterations->10)", "-0.020833333333333332");
    
    NIntegrate((x-1)*(x-0.5)*x*(x+0.5)*(x+1),{x,0,1},Method->Romberg)
    
  2. Log in to comment