[pstricks] complex calculation

Herbert Voss Herbert.Voss at FU-Berlin.DE
Fri Jul 2 16:44:31 CEST 2010


Am 02.07.2010 01:51, schrieb Marco Daniel:

> how can I calculate the points of the equation
> z^5=1
> 
> I know that i can use the cxconv-marco of the pst-func but it doesn't
> work in my minimal example:
> 
> \documentclass{article}
> \parindent0pt
> \pagestyle{empty}
> \usepackage{pstricks}
> \usepackage{pst-func}
> \usepackage{pstricks-add}
> 
> \begin{document}
> \begin{psgraph}[labels=none,ticks=none]{->}(0,0)(-1,-1)(1,1){5cm}{5cm}
> %%%%z_0=exp(i 2/5\pi)
> \psset{radius=3pt}
> \Cnode*(!2 5 div Pi mul cxvonv){A}

the subroutine leaves an array [x y] on stack and not
directly the values.

this should work:

\Cnode*(!2 5 div Pi mul tx at FuncDict begin cxconv end aload pop ){A}

aload: [x y] -> x y [x y]
pop: x y

Herbert

> %%%%z_1=exp(i 4/5\pi)
> %%%%z_2=exp(i 6/5\pi)
> %%%%z_3=exp(i 8/5\pi)
> %%%%z_4=exp(i 2\pi)
> %
> \end{psgraph}
> \end{document}
> 
> Thanks and regards
> Marco
> 
> _______________________________________________
> PSTricks mailing list
> PSTricks at tug.org
> http://tug.org/mailman/listinfo/pstricks
> archive: http://www.tug.org/pipermail/pstricks/
> 



More information about the PSTricks mailing list