Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Indexed Methods solution in Clear category for Simple Areas by Tinus_Trotyl
def simple_areas(*a):
return round(eval(METHODS[len(a)-1]), 2)
METHODS = [ ".7853981634 * a[0] * a[0]",
"a[0] * a[1]",
"(((a[0]+a[1]+a[2]) * (a[0]+a[1]-a[2]) * (a[1]+a[2]-a[0]) * (a[2]+a[0]-a[1])) ** .5) / 4" ]
Jan. 4, 2018
Comments: