Download Symbolic Math Toolbox User's Guide
Transcript
2 Using the Symbolic Math Toolbox 2/3 π round(1/2 x/π) 2.5 2 1.5 1 0.5 0 −0.5 −1 −1.5 −2 −2.5 −6 −4 −2 0 x 2 4 6 Next, add the step function J(x) to F(x) with the following code: F1 = F+J F1 = 2/3*atan(1/3*tan(1/2*x))+2/3*pi*round(1/2*x/pi) Adding the step function raises the section of the graph of F(x) on the interval [ π 3π ) up by 2π ⁄ 3 , lowers the section on the interval ( – 3π – π ] down by 2π ⁄ 3 , and so on, as shown in the following figure. 2-38