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 :

an integral

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

Popular posts from this blog

c++ - C/pp Sockets, recv()/send() works only under gdb -

GO: Serve static pages -

objective c - How to open front/back camera at the same time in iOS developing? -