Trapezoidal method fixed and tested results apear to be correct