Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!elroy.jpl.nasa.gov!ames!pasteur!ucbvax!IRIS.KTH.DK!operator From: operator@IRIS.KTH.DK (Martin Liversage) Newsgroups: comp.sys.sgi Subject: PostScript bug!?!?!? Message-ID: <9012070826.AA03940@iris.kth.dk> Date: 7 Dec 90 08:26:35 GMT References: <9012070201.aa15465@VMB.BRL.MIL> Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 37 > Look out! Looks like the calculator is buggy... > -chuck No! The calculator is not buggy... The newsserver is. Try this one ----------------------------------------------------------------- #! /bin/psh % % Bug in newsserver PostScript? % % Martin Liversage - 90.12.07 09:18:19 % /Denom 5 def /Test { 3000 100 8000 { (/) 1 index % stack: n (/) n Denom mul % stack: n (/) Denom*n (=) 3 index 2 index % stack: n (/) Denom*n (=) n Denom*n div % stack: n (/) Denom*n (=) n/(Denom*n) pstack % should always print 1/Denom as result pop pop pop pop pop } for } def Test ----------------------------------------------------------------- Martin Liversage Royal Dental College Copenhagen Department of Pediatric Dentistry Norre Alle 20 DK-2200 Kobenhavn N