Skip to content

Files

Latest commit

Jun 2, 2020
423f3a8 · Jun 2, 2020

History

History
This branch is 16 commits ahead of, 19 commits behind csc-training/hpc-python:master.

integration

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Jan 22, 2018
Apr 21, 2020
Jun 2, 2020

Numerical integration

A simple method for evaluating integrals numerically is by the middle Riemann sum

img

with

img

Calculate the integral in the interval [0,π/2] and investigate how much the Riemann sum of sin differs from 1.0. Avoid for loops. Investigate also how the results changes with the choice of Δx.