Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Uncategorized category for Simple Areas by TovarischZhukov
import math
def simple_areas(*args):
p=sum(args)/2.0
return eval({1: "math.pi * (args[0]/2.0)**2", 2: "args[0]*args[1]", 3: "(p*(p-args[0])*(p-args[1])*(p-args[2]))**0.5"}[len(args)])
Dec. 15, 2015