VẼ BẰNG TIKZ TRONG LATEX


{\begin{tikzpicture}
\begin{axis}[
x=0.5cm,y=0.5cm,
axis lines=middle,
xmin=-4,
xmax=5.5,
ymin=-3,
ymax=2.5,
xtick={-2},
ytick={-2},]
%\clip(-2,-5.226415094339622) rectangle (4,4);
\draw[line width=0.5pt,smooth,samples=100,domain=-3.5:5.2] plot(\x,{(\x)^(3)/14-(\x)^(2)/7-(15*(\x))/14});

\draw [line width=0.4pt,dash pattern=on 1pt off 1pt] (-2,0)-- (-2,1);
\draw [line width=0.4pt,dash pattern=on 1pt off 1pt] (-2,1)-- (0,1);
\draw [line width=0.4pt,dash pattern=on 1pt off 1pt] (4,0)-- (4,-2);
\draw [line width=0.4pt,dash pattern=on 1pt off 1pt] (0,-2)-- (4,-2);

\draw [fill=black] (-2,1) circle (1pt);
\draw [fill=black] (4,-2) circle (1pt);
\draw [fill=black] (0,0) circle (1pt);
\draw [fill=black] (4,0) circle (0.1pt) node[above] {$4$};
\draw [fill=black] (0,1) circle (0.1pt) node[right] {$1$};

\end{axis}
\end{tikzpicture}}

Post a Comment

0 Comments