Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
3-liner: terror zone solution in Creative category for Simple Areas by przemyslaw.daniel
def simple_areas(*k, m=__import__('math')):
f = 'm.pi*(a/2)**2,a*b,m.sqrt((a+b+c)*(a+b-c)*(a-b+c)*(b+c-a))/4'
return eval(f.split(',')[len(k)-1], {x: y for x, y in zip('abcm', (k+(0, 0))[:3]+(m,))})
May 1, 2017