[pstricks] pstricks exp

Randy Scott scott_randy at sccollege.edu
Thu Oct 25 21:27:41 CEST 2012


Try this:

\documentclass{article}

\usepackage[T1]{fontenc}

\usepackage{inputenc}

\usepackage{pstricks, pstricks-add}

\begin{document}

\begin{pspicture}(-5,-5)(5,5)

   \psgrid[griddots=20,gridlabels=0pt, subgriddiv=0, gridcolor=blue!20]

   \psaxes(0,0)(-5,-5)(5,5)

   \psplot[algebraic, linecolor=blue]{0}{5}{sqrt(x)}

   \psplot[algebraic, linecolor=red]{0.1}{5.0}{Euler^x}

   \rput[lb](-4.0,3.5){\footnotesize

$S(t)=e^{\left[(-t/\alpha)^\beta\right]}$}

   \rput[lb](2.0,1.0){\footnotesize $\alpha=1,\beta=1.5$}

\end{pspicture}

\end{document}


The natural exponential base is implemented as Euler. In addition, I think
there was a braces and parentheses matching problem in your label.


Good Luck!

Randy Scott
Associate Professor, Mathematics
Santiago Canyon College



On 10/25/12 11:46 AM, "Cyrille Piatecki" <cyrille.piatecki at univ-orleans.fr>
wrote:

> Dear all,
> 
> I wonder wy the exponential code doesn't work.
> 
> \documentclass{article}
> \usepackage[T1]{fontenc}
> \usepackage{inputenc}
> \usepackage{pstricks, pstricks-add}
> 
> \begin{document}
> \begin{pspicture}(-5,-5)(5,5)
>    \psgrid[griddots=20,gridlabels=0pt, subgriddiv=0, gridcolor=blue!20]
>    \psaxes(0,0)(-5,-5)(5,5)
>    \psplot[algebraic,linecolor=blue]{0}{5}{sqrt(x)}
>    \psplot[linecolor=red]{0.1}{5.0}{exp(x)}% <--- doesn't work
> %  \rput[lb](-4.0,3.5){\footnotesize
> $S(t)=\exp{\left[(-t/\alpha)^\beta}\right]$}
>    \rput[lb](2.0,1.0){\footnotesize $\alpha=1,\beta=1.5$}
> \end{pspicture}
> \end{document}
> 
> Thanks for any help
> 
> Cyrille Piatecki
> _______________________________________________
> PSTricks mailing list
> PSTricks at tug.org
> http://tug.org/mailman/listinfo/pstricks
> archive: http://www.tug.org/pipermail/pstricks/



More information about the PSTricks mailing list