"Mark H. Harris" <harrismh...@gmail.com>: > if (n**2 < D(1)): > a = __atan__(n) > elif (n == D(1)): > a = gpi/4 > elif (n == D(-1)): > a = -(gpi/4) > elif (n < D(-1)): > a = __atan__Lt_neg1__(n) > else: > a = __atan__Gt_1__(n)
Drop the outermost parentheses in the if statements. They add to the clutter. Anyway, how would you express the above in, say, Java? Marko -- https://mail.python.org/mailman/listinfo/python-list