Rectify a Periodic Wave 

Rectify a sine wave.

In[1]:=
Click for copyable input
X
Out[1]=

Plot the rectified wave along with the original sine wave.

In[2]:=
Click for copyable input
X
Out[2]=

Rectify an elliptic wave. In this case, the event times are obtained using a numerical method.

In[3]:=
Click for copyable input
X
Out[3]=
In[4]:=
Click for copyable input
X
Out[4]=