I need your help since the sinus plot is not a perfect curve. Why?
Code: Select all
Code, edit and compile here:
\documentclass[10.5pt, twoside, a4paper]{article}\usepackage[portuguese]{babel}\usepackage[utf8]{inputenc}\usepackage[left=2.0cm,top=1.5cm,right=2.0cm,bottom=1.75cm]{geometry}\usepackage{amsmath,amssymb,amsfonts,textcomp,graphicx}\usepackage{tikz}\begin{document}\begin{center}\begin{tikzpicture}[scale=0.5]\coordinate (O) at (0, 0);\draw[ultra thick, color=blue][domain=-2.2*pi:2.2*pi] plot (\x,{sin(\x r)}) node[above right] {$f(x) = \sin x$};\draw[fill=black] (0,-1) circle (0pt) node[ left ]{{\scriptsize $-1$}};\draw[fill=black] (0,1) circle (0pt) node[ left ]{{\scriptsize $1$}};\draw[fill=black] (-3.1415,0) circle (0pt) node[below left ]{{\scriptsize $-\pi$}};\draw[fill=black] (3.1415,0) circle (0pt) node[below left ]{{\scriptsize $\pi$}};\draw[fill=black] (6.28,0) circle (0pt) node[below right ]{{\scriptsize $2\pi$}};\draw[fill=black] (-6.28,0) circle (0pt) node[below ]{{\scriptsize $-2\pi$}};\draw[ultra thick, ->, >=stealth] (-7, 0) -- (8, 0) node[below]{$x$};\draw[ultra thick, ->, >=stealth] (0,-2.5) -- (0, 2.5) node[left]{$y$};\end{tikzpicture}\end{center}\end{document}