下面的示例将与区间[-1, 1]上的Gauss方法进行比较。(default interval is [-1, 1])x, w = np.polynomial.legendre.leggauss(deg)print 'Difference between QUADPACK and Gauss-Legendre: ', abs(gauss- quad)
输出
请允许我在FORTRAN中使用Gauss和Gauss编写一个5D集成代码,但是当我编译它时,它非常慢。谁能告诉我如何提高速度吗?INTEGER :: i, j, k, l1, m, n,n1, h,i1,i2
READ*, n
PRINT*, 'Enter the number of points n1 of