[pstricks] log/ln in radial context for circular sliderule

Juergen Gilg gilg at acrotex.net
Sun May 23 15:53:20 CEST 2010


Dear Carsten,

> $f(x)=-\frac{\ln(x)\times360}{\ln(10)}$  $D_f=[0..10]\subset\mathbf{N}$
>
>
> %% /lograd \i\space ln -360 mul 10 ln div def
\pstVerb{%
/lograd \i\space ln 360 mul 10 ln div neg def
}

for your function.

Note: A logarithmic function is not defined for  \i=0 -- however you 
start with \i=0...
>
> Even a "simple number" isnt doing it and throwing "! Bad number: 
> `logradÂZ(."
Try out the following:

%%%%%%%%
\documentclass{article}
\usepackage{pstricks,multido}
\SpecialCoor
\begin{document}
\multido{\i=1+1}{10}{%
\pstVerb{%
/lograd \i\space ln 360 mul 10 ln div neg def
}
\psline(!4.9 lograd sin mul 4.9 lograd cos mul)(!5.2 lograd sin mul 5.2 
lograd cos mul)
}
\end{document}
%%%%%%%%

Hope this helps.

Regards,
Juergen

-- 
 Jürgen Gilg
 Austr. 59
 70376 Stuttgart
-------------------------------------
 Tel       0711.59 27 88
 e-Mail    gilg at acrotex.net


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/pstricks/attachments/20100523/1d01e5b9/attachment.html>


More information about the PSTricks mailing list