Avoiding -exp- blowups in older
PostScript interpreters
By Don Lancaster                                                                   
Version 1.1 January 24, 1998
Copyright c. 1998 by Don Lancaster and Synergetics, Box 809, Thatcher AZ, 85552
(520) 428-4073. synergetics@tinaja.com All commercial rights and all electronic media
rights are *fully* reserved. Linking welcome. Reposting is expressly forbidden.

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...

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...


Copyright c. 1998 by Don Lancaster and Synergetics, Box 809, Thatcher AZ, 85552
(520) 428-4073. synergetics@tinaja.com All commercial rights and all electronic media
rights are *fully* reserved. Linking welcome. Reposting is expressly forbidden.
Further support on http://www.tinaja.com
Consulting services available via don@tinaja.com

Please click here to...