1. Fix "ambiguous" versus "unknown" commands; 2. Don't tell
[unix-history] / usr / src / usr.bin / bc / bc.library
index 8e291b4..bd7e2e5 100644 (file)
@@ -1,8 +1,8 @@
-/*     bc.library      4.1     83/04/02        */
+/*     bc.library      4.3     87/09/14        */
 
 scale = 20
 define e(x){
 
 scale = 20
 define e(x){
-       auto a, b, c, d, e, g, w, y
+       auto a, b, c, d, e, g, t, w, y
 
        t = scale
        scale = t + .434*x + 1
 
        t = scale
        scale = t + .434*x + 1
@@ -125,9 +125,11 @@ define c(x){
 define a(x){
        auto a, b, c, d, e, f, g, s, t
        if(x==0) return(0)
 define a(x){
        auto a, b, c, d, e, f, g, s, t
        if(x==0) return(0)
-       if(x==1)
-               if(scale<52)
+       if(x==1) {
+               if(scale<52) {
 return(.7853981633974483096156608458198757210492923498437764/1)
 return(.7853981633974483096156608458198757210492923498437764/1)
+               }
+       }
        t = scale
        f=1
        while(x > .5){
        t = scale
        f=1
        while(x > .5){