Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Uncategorized category for Humpty Dumpty Form by htamas
from cmath import sqrt, pi, atanh, asin
def checkio(h, w):
e = sqrt(1 - (h/w)**2)
t = atanh(e)/e if e else 1
V = pi/6 * w**2 * h
S = pi/2 * (w**2 + h**2 * t)
return [V.real, S.real]
Feb. 6, 2014
Comments: