At Start Integration for
if output = 0
then
Start Integration for
if output = 0
Stop Integration for and Integration for
Determine and using sampled values for and
Algorithm 1