Dear students,
to get the actual result for the integral, one has to divide the sum of all partial integrals (summed up in the sum
variable) by the number of integration steps (i.e., N
), e.g.:
double ln = sum * delta_x;We included this line in the assignment code to avoid any further confusion and apologize if it caused anyone of you any trouble!
Best, Jan