python - Tanh-sinh quadrature numerical integration method converging to wrong value -
I am trying to write a Python program to use the Thanh-paragraph to calculate the value :
However this program may be incorrect In every case, it is not centered on the correct value (which is PI for this particular integral) and I can not find the problem
Accuracy Area gives instead of asking for a desired level, to the program asks for the number of desired functions, making the convergence with simple integration methods easier. The number of evaluations should be an odd number because the approximation used
Comments
Post a Comment