First: My inspiration for trying the following is Herbert Voß' help in the thread PSTricks | Draw regular polygons on top of each other.
Now for a MWE:
Code: Select all
\documentclass{article}
\usepackage{auto-pst-pdf,pstricks-add}
\begin{document}
\def\valueA{1 }
\def\valueB{\valueA 2 div }
\def\valueC{\valueA 2 5 sqrt 2 mul 5 add sqrt div mul }
\begin{figure}
\centering
\psset{unit=5}
\begin{pspicture}(\valueA,\valueC)
\pnode(0,0){A}
\pnode(\valueA,0){B}
\pnode(\valueB,\valueC){C}
\pspolygon(A)(B)(C)
\end{pspicture}
\end{figure}
\end{document}
\valueA
= 1\valueB
= \valueA
/ 2\valueC
= \valueA
* (sqrt(5 + 2*sqrt(5)))/2(but I am not familiar with RPN notation at all) and then draw a triangle with the corners (0,0), (
\valueA
,0), and (\valueB
,\valueC
). (Btw., this is a isosceles triangle with angles 72deg, 72deg, and 36deg.)How do I do this?
Thank you in advance!