December 2017
Intermediate to advanced
386 pages
10h 42m
English
There are other possibilities is to use Gaussian quadrature formulas, they are:
In [38]: from scipy.integrate import quadrature, fixed_quadIn [39]: value, absolute_error = quadrature(f, -1, 1, tol=1.49e-8); \ ....: print (value)1.80904847478In [40]: value, absolute_error = fixed_quad(f, -1, 1, n=4); \ ....: print (value) # four nodes1.80861639538
Read now
Unlock full access