Lower and Upper Sum

demonstrate the principle of Integral function in calculus. Three functions are used which are UpperSum, LowerSum, and Integral

try to change the number of n to see the difference between the computing results of three functions. you can see that when n is larger and larger, the results of the three functions tend to be consistent