Code for pendulum without friction

In[35]:=

If your output will be a sequence of graphs, select a display option.
Display as:

In[36]:=

If your output will be a sequence of graphs, select a display option.
Display as:

Up to Appendix: Code generating the examples