a rectangular farm has to be fenced one long side , one short side and the diagonal . if the cost of fencing is rs . 14 per meter . the area of farm is 1200 m 2 and the short side is 30 m long . how much would the job cost ?
import math
n0 = 14.0
n1 = 1200.0
n2 = 2.0
n3 = 30.0
t0 = n1 / n3
t1 = n3**min(n2, 5)
t2 = n3 + t0
t3 = t0**min(n2, 5)
t4 = t1 + t3
t5 = math.sqrt(max(0, t4))
t6 = t2 + t5
answer = n0 * t6
print(answer)