- 9,621
- 9
I need to plot the following piecewise function for a mark scheme I'm writing, but I can't seem to get maple to plot it. I can define the function, but when I ask maple to plot it, it just hangs. Any help would be much appreciated. The function;
f(\theta):=<br /> \left\{\begin{array}{lcr}<br /> -\theta-\pi & \text{for} & \pi<\theta< 0 \\<br /> \pi-\theta & \text{for} & 0<\theta<\pi<br /> \end{array}\right.<br /> \text{and}f(\theta+2\pi)=f(theta)
And I use the following command to try and plot it
;
Thanks in advance.
f(\theta):=<br /> \left\{\begin{array}{lcr}<br /> -\theta-\pi & \text{for} & \pi<\theta< 0 \\<br /> \pi-\theta & \text{for} & 0<\theta<\pi<br /> \end{array}\right.<br /> \text{and}f(\theta+2\pi)=f(theta)
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);