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

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -