Re: Grafici

#95720
emy
    Up
    0
    Down
    ::


    begin{figure}[h]
    \begin{tikzpicture}
    \begin{axis}[legend style={anchor=north,at={(0.75,1.8)}},axis lines=middle,enlargelimits,xtick={6.28,12.56},ytick={-1,-0.5,0.5,1},xticklabels={$2\pi$,$4\pi$},xlabel=$x$,ylabel=$y$,width=14cm,height=9cm,]
    \addplot [samples=200,thick,color=magenta,smooth,domain=0:12.56]{-1/6*sin(6*deg(x))};
    \addplot [samples=200,thick,color=red,smooth,domain=0:12.56]{-1/5*sin(5*deg(x))};
    \addplot [samples=200,thick,color=blue,smooth,domain=0:12.56]{-1/4*sin(4*deg(x))};
    \addplot [samples=200,thick,color=black,smooth,domain=0:12.56]{-1/3*sin(3*deg(x))};
    \addplot [samples=200,thick,color=green,smooth,domain=0:12.56]{-1/2*sin(2*deg(x))};
    \addplot [samples=200,thick,color=magenta,smooth,domain=0:12.56]{-sin(deg(x))};
    \legend{$-\frac{1}{6}sin(6x)$,$-\frac{1}{5}-sin(5x)$, $-\frac{1}{4}sin(4x))$,$-\frac{1}{3}sin(3x)$,$-\frac{1}{2}sin(2x)$,$-sin(x)$}
    \end{axis}
    \end{tikzpicture}
    \caption{Funzioni utilizzate per approssimare l’onda a dente di sega}
    \end{figure}

    Go to top