%\input{DP1}
%\input{DP2}

\documentclass{article}
%\usepackage{graphicx}
%\usepackage{tkz-berge}
%\usepackage{tkz-graph}
% \usepackage{tkz-fct}

\usepackage{scalefnt}
%بسته‌ای برای تغییر دلخواه فونت در هر جای متن 
%{\scalefont{4}{نمونه}}
\usepackage{fourier}
%\usetikzlibrary{arrows,shapes,positioning}
\usepackage{tikz}

\usepackage[usenames,dvipsnames]{pstricks}
\usepackage{epsfig}
\usepackage{pst-plot}
\usepackage{pst-func}
\usepackage{pst-grad}
\usepackage{xepersian}

%%%%%%%%%%%%%%%%%pgfplots
\usepackage{pgfplots}
\usetikzlibrary{patterns}

\pgfplotsset{width=7cm,compat=1.3}

\settextfont{Yas}
\setdigitfont{Yas}
\newcommand{\fas}{\hspace*{2cm}} 
\begin{document}

\begin{tikzpicture}[domain=-4:4]
%\draw[very thin,color=gray] (-5,-1.1) grid (9,5);
\draw[->] (-5.2,0) -- (4.2,0) node[right] {$x$};
\draw[->] (0,-1.2) -- (0,4.2) node[above] {$f(x)$};
\draw[color=red] plot (\x,\x) node[right] {$f(x) =x$};
\draw[color=blue] plot (\x,{sin(\x r)}) node[right] {$f(x) = \sin x$};
\draw[color=orange] plot (\x,{0.05*exp(\x)}) node[right] {$f(x) = \frac{1}{20} \mathrm e^x$};
\draw[color=green] plot (\x,{5*sin(\x r)}) node[right] {$5\times f(x) = \sin x$};
\draw[color=green] plot (\x,{(\x^2)/3}) node[right] {$f(x) = \sin^2/ 3$};
\end{tikzpicture}

\begin{figure}[h]
\centering
\scalebox{.5} % Change this value to rescale the drawing.
{
\begin{pspicture}(3,3)(-3,-3)
 \psaxes{<->}(0,0)(3,3)(-3,-3)
 \psplot[polarplot,algebraic=true,linecolor=blue,linewidth=1pt,
 plotpoints=2000]{0}{TwoPi 4 mul}{(x)^(1/2)}
 \psplot[polarplot,algebraic=true,linecolor=red,linewidth=1pt,
 plotpoints=2000]{0}{TwoPi 4 mul}{(x)^(1/3)}
 \end{pspicture} 
 }
\end{figure}

\begin{tikzpicture}[scale=2]
\shade[top color=blue,bottom color=gray!50] (0,0) parabola (1.5,2.25) |- (0,0);
\draw (1.05cm,2pt) node[above] {$\displaystyle\int_0^{3/2} \!\!x^2\mathrm{d}x$};
%\draw[help lines] (0,0) grid (3.9,3.9)[step=0.25cm] (1,2) grid +(1,1);
\draw[->] (-0.2,0) -- (4,0) node[right] {$x$};
\draw[->] (0,-0.2) -- (0,4) node[above] {$f(x)$};
\foreach \x/\xtext in {1/1, 1.5/1\frac{1}{2}, 2/2, 3/3}
\draw[shift={(\x,0)}] (0pt,2pt) -- (0pt,-2pt) node[below] {$\xtext$};
\foreach \y/\ytext in {1/1, 2/2, 2.25/2\frac{1}{4}, 3/3}
\draw[shift={(0,\y)}] (2pt,0pt) -- (-2pt,0pt) node[left] {$\ytext$};
\draw (-.5,.25) parabola bend (0,0) (2,4) node[below right] {$x^2$};
\end{tikzpicture}


\end{document}


