Corrected draft

Agrees with Matlab and Excel sample