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

Hensh, Richard hensh at math.msu.edu
Sun May 23 14:02:04 CEST 2010


This doesn't seem to work. Try using the following instead:

\psline(!4.9 lograd RadToDeg PtoC)(!5.2 lograd RadToDeg PtoC)

regards
rick

________________________________________
From: pstricks-bounces at tug.org [pstricks-bounces at tug.org] On Behalf Of Hensh, Richard [hensh at math.msu.edu]
Sent: Sunday, May 23, 2010 7:38 AM
To: Graphics with PSTricks
Subject: Re: [pstricks] log/ln in radial context for circular sliderule

You need to use ! to plot use computed values:

\SpecialCoor
\multido{\i=0+1}{10}{
\pstVerb{%
  /lograd 10 def %
}
  \psline(!4.9; lograd)(!5.2; lograd)
}



regards
rick

________________________________________
From: pstricks-bounces at tug.org [pstricks-bounces at tug.org] On Behalf Of Carsten Vogel (orphaned) [lego at wh10.tu-dresden.de]
Sent: Sunday, May 23, 2010 3:40 AM
To: Graphics with PSTricks
Subject: [pstricks] log/ln in radial context for circular sliderule

превиет!
I am working myself through the magic of sliderules right now and want
to spend some thoughts on rebuilding one. I think that labeling should
be done precisely therefore by PSTricks (or maybe something else?).

Now I started to map 1..10 to 0..360 of a circle to draw tickmarks in a
log-fashion. My idea is (1st iteration):
$f(x)=-\frac{\ln(x)\times360}{\ln(10)}$  $D_f=[0..10]\subset\mathbf{N}$

So where do I go wrong?

%% /lograd \i\space ln -360 mul 10 ln div def

Even a "simple number" isnt doing it and throwing "! Bad number: `lograd´."

TIA,
Carsten


\documentclass{article}
\usepackage{pstricks,multido}

\SpecialCoor

\begin{document}
\multido{\i=0+1}{10}{
\pstVerb{%
        /lograd 10 def
}
        \psline(4.9; lograd)(5.2; lograd)
}
\end{document}
_______________________________________________
PSTricks mailing list
PSTricks at tug.org
http://tug.org/mailman/listinfo/pstricks
archive: http://www.tug.org/pipermail/pstricks/
_______________________________________________
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