Hello, Ben, your Gauss Legendre integration code is awesome, which benefited me a lot.But there is one question that bothers me. I am looking forward to your answer.
In the file gausslegendre.h, the selection of the initial iteration point of the calculateweightandroot function is very interesting, which is exactly what bothers me. why choose cos(M_PI * (step-0.25)/(mNumberOfIterations+0.5)) as the initial iteration point?
I appreciate all your help and best wishes!
Hello, Ben, your Gauss Legendre integration code is awesome, which benefited me a lot.But there is one question that bothers me. I am looking forward to your answer.
In the file gausslegendre.h, the selection of the initial iteration point of the calculateweightandroot function is very interesting, which is exactly what bothers me. why choose cos(M_PI * (step-0.25)/(mNumberOfIterations+0.5)) as the initial iteration point?
I appreciate all your help and best wishes!