Design a Proportional-Derivative Controller 

Use a sampled proportional-derivative (PD) controller to keep the position of a moving mass constant.

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