[pstricks] Some examples of solids of revolution
Herbert Voss
Herbert.Voss at FU-Berlin.DE
Sun Dec 25 18:56:28 CET 2016
Am 22.12.2016 um 23:44 schrieb Dougherty, Michael:
> Thanks to everyone who offered some advice on volumes of revolution graphs for calculus books. I came up with some, mostly using brute force, for instance using parametricplot for bits of ellipses and such. Here's the code. Apologies that it's not very clean or elegant, and I'm sure I'll make some changes eventually. Maybe someone will find something useful in there. (I really like fouriernc for my fonts, so I left it in.):
>
you can use the PS function RadtoDeg and also the algebraic option:
\documentclass{article}
\usepackage{pst-plot}
\begin{document}
\begin{pspicture}(-3,-1)(3,3)
\psaxes{<->}(0,0)(-3,-1)(3,3)
\psplot[plotpoints=200,linestyle=dashed,]{-0.723601255}{0.723601255}{%
x dup mul RadtoDeg sin 2 mul}
\psplot[algebraic,plotpoints=200,
linecolor=red,]{-2}{-0.723601255}{ 2*sin(x^2) }
\end{pspicture}
\end{document}
Herbert
More information about the PSTricks
mailing list