Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Just try . . . solution in Clear category for Simple Areas by Tinus_Trotyl
def simple_areas(*a):
try: return (((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
except IndexError:
try: return a[0] * a[1]
except IndexError: return .7853981634 * a[0] ** 2
March 6, 2018