Post Reply 
Gauss-Kronrod quadrature
09-05-2022, 09:15 AM
Post: #1
Gauss-Kronrod quadrature
This HP Prime program demonstrates the procedure for calling
a subroutine named gk15 which integrates a user-defined function
of the form y = f(x) using a 15-point gauss-kronrod method.

Subroutine gk15 requires a user-defined 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
user-specified lower and upper integration values for x.


Attached File(s)
.zip  demo_gk15.zip (Size: 3.51 KB / Downloads: 15)
Find all posts by this user
Quote this message in a reply
Post Reply 




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