The Numworks calculator can calculate definite integrals without coding using the Calculation or Grapher apps.
However this script explores the “1/3 Simpson rule” for definite integrals. It defines the function:
simpson(fun,a,b,n)
- fun is a python function of one variable to apply integration on
- a, b is the integration interval
- n is the number of points to be used
The rest of the script generates a plot illustrating the function and showing the result as text.
Tested on the calculator using software version 23.2.6.