GaussKronrod quadrature

09052022, 09:15 AM
Post: #1




GaussKronrod quadrature
This HP Prime program demonstrates the procedure for calling
a subroutine named gk15 which integrates a userdefined function of the form y = f(x) using a 15point gausskronrod method. Subroutine gk15 requires a userdefined function coded in a second subroutine called usrfunc which evaluates the function for any value of x. the user must specify the lower and upper integration limits. This program demonstrates the use of gk15 to compute the integral of f(x) = 2 / sqrt(pi) * exp(x * x) for userspecified lower and upper integration values for x. 

« Next Oldest  Next Newest »

User(s) browsing this thread: 1 Guest(s)