User:Egm4313.s12.team11.perez.gp/R7.4

Problem Statement
Sketch or graph $$ f(x) \! $$ which for $$ -\pi < x < \pi \! $$ is given as follows:

$$ f(x) = \left | x \right | \! $$

Solution
The MATLAB code shown below was used to developed the graph of $$ f(x) = \left | x \right | \! $$:





Problem Statement
Sketch or graph $$ f(x) \! $$ which for $$ -\pi < x < \pi \! $$ is given as follows:

$$ f(x)=\left\{\begin{matrix} x, if: -\pi<x<0\\

\pi - x, if: 0<x<\pi \end{matrix}\right. \! $$

Solution
The MATLAB code shown below was used to developed the graph of $$ f(x)=\left\{\begin{matrix} x, if: -\pi<x<0\\

\pi - x, if: 0<x<\pi \end{matrix}\right. \! $$: