def triangle_area(r): if r < 0: return -1 return r * r