0% found this document useful (0 votes)
6 views1 page

79

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views1 page

79

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

#TITLE :BIRGE VIETA METHOD

#NAME: BHAGYASHRI PANDHARE


#ROLL NO: S411079

n=int(input("Enter the order of the equation,n="))


it=int(input("Enter the number of itterations to be calculated"))
po=float(input("Enter the initial approximation p0"))

a=[]
b-[]
c-[]

print("Enter the coefficients of the given equation")

for i in range(0,n+1,1):
element=int(input())
a.append(element)
print(a)
b.insert(0,a[0])
c.insert(0,b[0])

for i in range(1,it+1,1):
for i in range(1,n+1,1):
b.insert(i,(a[i]+po+b[i-1]))
for i in range(1,n):
c.insert(i,(b[i]+[1-1]*p01))
pl-float (p0-(b[n]/c[n-1]))

p0-p1
print("At the end of iteratim, the answer will be %0.6f"%(p1))

You might also like