In [1]:
Copied!
import math
c = 246886422468.0000
d = 13579.0000
def formula(c, d) :
return math.sqrt(c ** 2 + d) - c
ans = formula(c, d)
print("%.4f" %(ans))
print(float((c * c + d)))
import math
c = 246886422468.0000
d = 13579.0000
def formula(c, d) :
return math.sqrt(c ** 2 + d) - c
ans = formula(c, d)
print("%.4f" %(ans))
print(float((c * c + d)))
0.0000 6.095290559904778e+22
Last update:
2024-04-27