Further support on www.tinaja.com
(The following is believed correct. Please report any errors or differing experiences.)
There's times
and places where I needed a sneaky way to draw a common power
supply "pulse" waveform. Doing so has led to finding a curious
bug on older PostScript
interpreters.
I found the code...
sin abs 32.5 exp
done over 0 to 180 degrees nicely draws me a clean narrow pulse. But
strangely,
the code sailed right on through Distiller but blew up on a HP LaserJet
4M+ with an
undefined result error.
The apparent problem has to do with differences in algorithm implementation
on 16 and
32 bit machines. And, yes, raising a small number to such a high power
is normally and
unreasonably well out of the mainstream.
At any rate, the following patch seems to work...
sin abs dup 0.001 lt {pop 0.001} if 32.5 exp
Please click here to...
![]() |
![]() |
|
![]() |
![]() |
|
![]() |
![]() |
|
![]() |
![]() |
|
![]() |
![]() |
|