- #1

Hootenanny

Staff Emeritus

Science Advisor

Gold Member

- 9,621

- 6

[tex]f(\theta):=

\left\{\begin{array}{lcr}

-\theta-\pi & \text{for} & \pi<\theta< 0 \\

\pi-\theta & \text{for} & 0<\theta<\pi

\end{array}\right.

\text{and}f(\theta+2\pi)=f(theta)[/tex]

And I use the following command to try and plot it ;

Code:

`plot(f(theta),theta=-4*\pi..4*\pi, y=-4..4, discont=true);`