![]() |
(PC-12xx~14xx) qgaus Gauss-Legendre quadrature - Printable Version +- HP Forums (https://www.hpmuseum.org/forum) +-- Forum: Not HP Calculators (/forum-7.html) +--- Forum: Not remotely HP Calculators (/forum-9.html) +--- Thread: (PC-12xx~14xx) qgaus Gauss-Legendre quadrature (/thread-16548.html) |
(PC-12xx~14xx) qgaus Gauss-Legendre quadrature - robve - 03-28-2021 01:47 PM GAUSS-LEGENDRE 10 POINT QUADRATURE Estimate definite integral over open interval with Gauss Legendre For SHARP PC-12xx to 14xx 349 bytes BASIC image (PC-1350) Credit: Numerical Recipes qgaus See also: https://en.wikipedia.org/wiki/Gaussian_quadrature Precision: 1E-3 to 1E-10 Points: 10 (fixed) Example: 300 "F1" Y=4/(1+X*X): RETURN RUN f=F1 a=0 b=1 3.141592654 310 "F2" Y=ATN(1/X): RETURN RUN f=F2 a=0 b=1 1.131971754 Code: ' GAUSS-LEGENDRE 10 POINT QUADRATURE |