Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!rutgers!mit-eddie!uw-beaver!uw-june!uw-entropy!hubert From: hubert@entropy.ms.washington.edu (Steve Hubert) Newsgroups: comp.bugs.4bsd Subject: bc bug Message-ID: <585@entropy.ms.washington.edu> Date: Fri, 1-May-87 18:54:08 EDT Article-I.D.: entropy.585 Posted: Fri May 1 18:54:08 1987 Date-Received: Sun, 3-May-87 01:45:27 EDT Organization: UW MathStat, Seattle Lines: 34 The a() function in bc's lib.b (4.3BSD, lib.b version 4.1) doesn't work unless another set of brackets is added. Without the brackets a(x) is always pi/4, except when x == 0. Steve Hubert Dept. of Stat., U. of Wash, Seattle hubert@entropy.ms.washington.edu {decvax,ihnp4}!uw-beaver!uw-entropy!hubert *** lib.b.old Fri May 1 15:49:07 1987 --- lib.b.new Fri May 1 15:49:13 1987 *************** *** 125,133 **** define a(x){ auto a, b, c, d, e, f, g, s, t if(x==0) return(0) ! if(x==1) if(scale<52) return(.7853981633974483096156608458198757210492923498437764/1) t = scale f=1 while(x > .5){ --- 125,134 ---- define a(x){ auto a, b, c, d, e, f, g, s, t if(x==0) return(0) ! if(x==1){ if(scale<52) return(.7853981633974483096156608458198757210492923498437764/1) + } t = scale f=1 while(x > .5){