summaryrefslogtreecommitdiff
path: root/progs/a561.py
blob: 72aba95801d335206cfc8529f4b55fa7a16996a4 (plain)
1
2
3
4
5
6
import math
def largest_triangle(a,b): 
    if (a < 0 or b < 0): 
        return -1 
    area = (3 * math.sqrt(3) * pow(a, 2)) / (4 * b);  
    return area