You are on page 1of 1

from pylab import *

from math import *

import scipy

from scipy.integrate import quad

#the function to be integrated:

def f(x, a):

return(2/pi)/sqrt(1-sin(a/2)**2*sin(x)**2)

l=int(input("Enter the value of length : "))

j=1

while j < 5:

i=int(input("Enter the value of angle : "))

angle = pi * i / 180

m=quad(f,0,pi/2,args=(angle))[0]

t=4*sqrt(l/10)*m

print(m)

j +=1

You might also like