implemented correct EPTR for sawtooth and asymmetric triangle