Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <<pi.py>>=
- def arccot(x, unity):
- sum = xpower = unity // x
- n = 3
- sign = -1
- while 1:
- xpower = xpower // (x*x)
- term = xpower // n
- if not term:
- break
- sum += sign * term
- sign = -sign
- n += 2
- return sum
Add Comment
Please, Sign In to add comment