[pstricks] drawing function defined by integral

Herbert Voss Herbert.Voss at FU-Berlin.DE
Fri Feb 28 14:37:02 CET 2014


Am 28.02.2014 14:04, schrieb azzam.hassan at voila.fr:

> I m asking about a simple way to draw the graphe of general functions
> defined by an integral suxh tha the graphe of $f:x\mapsto \int _1^x
> \ln(t)/(1+t^3) {\rm d}t$

\documentclass[pstricks]{standalone}
\usepackage{pst-func}
\begin{document}

\psset{yunit=10}
\begin{pspicture}(-1,-0.2)(10,0.5)
\psaxes[ticksize=0 4pt, subticks=5,Dy=0.1](0,0)(9,0.4)
\psplot[algebraic,plotpoints=500,linecolor=red]{1}{9}{ln(x)/(1+x^3)}
\psCumIntegral[plotpoints=1000,Simpson=10,linecolor=blue]{1}{9}{ dup ln 
exch 3 exp 1 add div }% x is on stack
\rput[lb](1,0.25){$f:x\mapsto \displaystyle\int\limits _1^x 
\ln(t)/(1+t^3) \mathrm dt$}
\end{pspicture}

\end{document}


Herbert
-------------- next part --------------
A non-text attachment was scrubbed...
Name: xyz.png
Type: image/png
Size: 12492 bytes
Desc: not available
URL: <http://tug.org/pipermail/pstricks/attachments/20140228/97484337/attachment.png>


More information about the PSTricks mailing list