Document ClassesParametric plot and infix postfix

Information and discussion about specific document classes and how to create your own document classes.
Post Reply
Dr. Rizzy
Posts: 9
Joined: Fri Jul 18, 2008 2:14 am

Parametric plot and infix postfix

Post by Dr. Rizzy »

Greetings,

I have two questions. The book I am learning about PSTricks on is The LaTeX Graphics Companion 2nd ed. In it it has no documentation of how to use parametricplotThreeD to render a surface that is plotted with two independent variables. The curve option does not work as this clearly has surface area. Also I am having trouble converting $ \frac{\sqrt{1+t^{2}}}{2} \cos(u) $ and $ \sqrt{1+t^{2}} \sin(u) $ to RPN (a.k.a. Postfix). If someone could direct me to a good Infix postfix coverter that would be great.

Steve

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Parametric plot and infix postfix

Post by localghost »

Perhaps the pst-infixplot package will help you with this task.


Best regards
Thorsten¹
Dr. Rizzy
Posts: 9
Joined: Fri Jul 18, 2008 2:14 am

Re: Parametric plot and infix postfix

Post by Dr. Rizzy »

I am currently using MacTeX. How do I install pst-infixplot for this distribution if I am able? If I am not able is there another way? Also, what is the syntax to plot a surface in parametricplotThreeD[ "what goes here"]? Thank you very much for your help.

Steve
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Parametric plot and infix postfix

Post by localghost »

Open a command prompt and find out if the package is already installed.

Code: Select all

kpsewhich pst-infixplot.sty
If not, download the package as ZIP archive from CTAN [1]. You have to follow the guidelines of the TDS (TeX Directory Structure) when putting the single files into the directory tree. For the syntax of parametric 3D plots see the documentation of pst-3dplot.

[1] CTAN: directory: /tex-archive/graphics/pstricks/contrib/pst-infixplot
User avatar
Juanjo
Posts: 657
Joined: Sat Jan 27, 2007 12:46 am

Re: Parametric plot and infix postfix

Post by Juanjo »

Have you upgraded to the MacTeX 2008 distribution? It comes with the new TeX Live Manager which makes very simple to install and update packages.
The CTAN lion is an artwork by Duane Bibby. Courtesy of www.ctan.org.
Dr. Rizzy
Posts: 9
Joined: Fri Jul 18, 2008 2:14 am

Re: Parametric plot and infix postfix

Post by Dr. Rizzy »

Thank you Juanjo and Localghost,

I am not sure if I do have that. If I do have that what would I do? Also, I forgot to tell you that I am trying to plot the function $ x=\frac{\sqrt{1+t^{2}}}{2} \cos(u), y=t, z=\sqrt{1+t^{2}} \sin(u) $ via parametricplotThreeD, do you know what I would put in parametricplotThreeD to plot this?

Steve
User avatar
Juanjo
Posts: 657
Joined: Sat Jan 27, 2007 12:46 am

Parametric plot and infix postfix

Post by Juanjo »

Dr. Rizzy wrote: I am not sure if I do have that. If I do have that what would I do?
I recommend you to upgrade. It is really simple. Take a look at http://www.tug.org/mactex/
Concerning your question about parametricplotThreeD, I can't help.
The CTAN lion is an artwork by Duane Bibby. Courtesy of www.ctan.org.
CrazyHorse
Posts: 351
Joined: Sat Aug 02, 2008 8:47 am

Parametric plot and infix postfix

Post by CrazyHorse »

Dr. Rizzy wrote: I have two questions. The book I am learning about PSTricks on is The LaTeX Graphics Companion 2nd ed. In it it has no documentation of how to use parametricplotThreeD to render a surface that is plotted with two independent variables. The curve option does not work as this clearly has surface area. Also I am having trouble converting $ \frac{\sqrt{1+t^{2}}}{2} \cos(u) $ and $ \sqrt{1+t^{2}} \sin(u) $ to RPN (a.k.a. Postfix). If someone could direct me to a good Infix postfix coverter that would be great.
use simply the algebaric option ...

Code: Select all

documentclass{article}
\usepackage{pst-3dplot}

\begin{document}

\begin{pspicture}(-3.25,-2.25)(3.25,5.25)
  \pstThreeDCoor[zMax=5]
  \parametricplotThreeD[xPlotpoints=200,linecolor=blue,%
    linewidth=1.5pt,plotstyle=curve,algebraic](0,31.4){%
    2.5*cos(t) | 2.5*sin(t) | t/6}
\end{pspicture}

\end{document}
that's all. No need for another package.

Herbert
Post Reply