Python 3.7.9 (default, Aug 31 2020, 17:10:11) [MSC v.1916 64 bit (AMD64)]

Type "copyright", "credits" or "license" for more information.


IPython 7.18.1 -- An enhanced Interactive Python.


Restarting kernel...




In [1]: runfile('G:/UBCO/2020-2021/Python/20201003/discrete_integration.py', wdir='G:/UBCO/2020-2021/Python/20201003')

The numerical integral from NumPy trapz() is: 99.99999999999999

The numerical integral from our own For loop is: 100.0






In [2]: