We have used Bretschneider's formula for calculating the second diagonal .
16*(area2)=4e^2*f^2-(b2+d2-a2-c2)2
where 4 consecutive sides a,b,c,d and diagonal e enclosing sides a and b are given.