Plotting Airy functions
Herbert Voss
Herbert.Voss at fu-berlin.de
Sun Dec 26 14:18:12 CET 2021
Am 26.12.21 um 13:03 schrieb Djones9976 via texhax:
> Does anyone have an idea how to (or even if you can) plot Airy
> functions in LaTex?
>
Run with lualatex or latex->dvips->ps2pdf
The initial values für y(-10) and y'(-10) are guessed and not really
calculated
\documentclass[border=5mm]{standalone}
\usepackage{pstricks-add}
\begin{document}
\def\Funct{ exch x mul}% y'' = y*x on stack y y''
\psset{xunit=1.5, yunit=5, method=varrkiv, showpoints=true}
\begin{pspicture}(-11,-1)(1,1.1)
\psaxes[Dy=0.2]{->}(0,0)(-11,-1)(1,1)
\psplotDiffEqn[varsteptol=.00001,plotpoints=500,
linecolor=red]{-10}{0}{0.05 1}{ \Funct }
\psplotDiffEqn[varsteptol=.00001,plotpoints=500,
linecolor=blue]{-10}{0}{-0.35 0}{ \Funct }
\end{pspicture}
\end{document}
\psplotDiffEqn [Options] {x0}{x1}{y0}{ f(x,y,y’,...) }
HErbert
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Bildschirmfoto 2021-12-26 um 14.14.22.png
Type: image/png
Size: 143363 bytes
Desc: not available
URL: <https://tug.org/pipermail/texhax/attachments/20211226/8e8f5868/attachment-0001.png>
More information about the texhax
mailing list.