Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from decimal import *
- getcontext().prec = 1024
- ONE = Decimal(1)
- TWO = Decimal(2)
- FOUR = Decimal(4)
- HALF = Decimal(1/TWO)
- a = ONE
- x = ONE
- b = TWO**(-HALF)
- c = ONE/FOUR
- def circuit():
- global a, x, b, c
- print(((a+b)**TWO)/(FOUR*c))
- y = a
- a = (a + b) / TWO
- b = (b * y).sqrt()
- c = c - x * (a - y)**TWO
- x = TWO*x
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement