C.a.R. > Demos > Functions, Curves > Riemann Sum
An example showing a filled discrete function. This generates the step function seen here. The step size can be controlled with an expression, which depends on n in this case. The sum and the integral are computed numerically using the integrate() function of C.a.R.