Sunday, October 5, 2014

Kurva Parametrik #2


Melanjutkan contoh-contoh sebelumnya, berikut ini saya tampilkan kembali tiga contoh kurva parametrik lainnya. Semuanya saya susun (compile) dalam jaringan melalui Online LaTeX Editor ShareLaTeX.
Demikian semoga bermanfaat.

Adjie Gumarang Pujakelana 2014 


Contoh 4

\documentclass[a4paper,10pt]{standalone}
\usepackage[T1]{fontenc}
\usepackage{concmath,gentium}
\usepackage[svgnames]{xcolor}
\setlength{\parindent}{0pt}
\usepackage{fix-cm}
\usepackage{graphicx}
\usepackage{amsmath}
\usepackage[T1]{fontenc}
\usepackage{xcolor}
\usepackage{pgfplots}
\pgfplotsset{compat=1.9}
    \usepgfplotslibrary{polar}
    \usepgfplotslibrary{units}
\pgfplotsset{every axis/.append style={
                    axis x line=middle,    % put the x axis in the middle
                    axis y line=middle,    % put the y axis in the middle
                    axis line style={<->,color=blue}, % arrows on the axis
                    xlabel={$x$},          % default put x on x-axis
                    ylabel={$y$},          % default put y on y-axis
            }}

\begin{document}

\color{MidnightBlue}
\centering
\begin{tikzpicture}[scale=2]
   \begin{polaraxis}[grid=none, axis lines=none]
     \addplot[mark=none,domain=0:360,samples=300] {cos(225*x)};
   \end{polaraxis}
\draw node [LemonChiffon] at (3.45,3.45) {\fontsize{.5cm}{1.95cm}\selectfont$\cos 225x$};
 \end{tikzpicture}

\end{document}




Contoh 5

\documentclass[a4paper,10pt]{standalone}
\usepackage[T1]{fontenc}
\usepackage{concmath,gentium}
\usepackage[svgnames]{xcolor}
\setlength{\parindent}{0pt}
\usepackage{fix-cm}
\usepackage{graphicx}
\usepackage{amsmath}
\usepackage{tikz}
\usepackage{pgfplots}
\pgfplotsset{compat=1.9}
    \usepgfplotslibrary{polar}
    \usepgfplotslibrary{units}
\pgfplotsset{every axis/.append style={
                    axis x line=middle,    % put the x axis in the middle
                    axis y line=middle,    % put the y axis in the middle
                    axis line style={<->,color=blue}, % arrows on the axis
                    xlabel={$x$},          % default put x on x-axis
                    ylabel={$y$},          % default put y on y-axis
            }}

\begin{document}

\color{MidnightBlue}
\centering
\begin{tikzpicture}[scale=2.25]
\begin{polaraxis}[
axis lines*=none,
ytick=\empty,xlabel=\empty,
axis line style = {draw=white,line width=0.0001pt},
hide y axis,
xticklabel={
\pgfmathparse{\tick/180}
\pgfmathifisint{\pgfmathresult}{$\pgfmathprintnumber[int detect]{\pgfmathresult}\pi$}%
{$\pgfmathprintnumber[frac,frac denom=6,frac whole=false]{\pgfmathresult}\pi$}
}
]
\addplot[IndianRed,thick,mark = none, domain = 0.4:12, samples = 600, data cs = polarrad]{sin(x)};
\end{polaraxis}
\end{tikzpicture}

\end{document}




Contoh 6

\documentclass[a4paper,10pt]{standalone}

\usepackage[T1]{fontenc}
\usepackage{concmath,gentium}
\usepackage[svgnames]{xcolor}
\setlength{\parindent}{0pt}
\usepackage{fix-cm}
\usepackage{graphicx}
\usepackage{amsmath}

\usepackage{pgfplots}
\pgfplotsset{compat=1.9}
    \usepgfplotslibrary{polar}
    \usepgfplotslibrary{units}
\pgfplotsset{every axis/.append style={
                    axis x line=middle,    % put the x axis in the middle
                    axis y line=middle,    % put the y axis in the middle
                    axis line style={<->,color=blue}, % arrows on the axis
                    xlabel={$x$},          % default put x on x-axis
                    ylabel={$y$},          % default put y on y-axis
            }}

\begin{document}

\color{MidnightBlue}
\centering
\begin{tikzpicture}[scale=2.25]
\begin{polaraxis}[enlargelimits=false,
axis lines*=none,xlabel=\empty,
hide y axis,
xticklabel=$\pgfmathprintnumber{\tick}^\circ$]
\addplot[IndianRed,thick,samples=100,
domain=0:360]{0.5 + 0.5*cos(x)};
        %Supercardioid
\end{polaraxis}
\end{tikzpicture}

\end{document}




No comments:

Related Posts Plugin for WordPress, Blogger...