bisection dev
bisection dev
PRN: 10303320181161210034
"""
INPUT:
#solving equations
# Bisection Method.
def func(x):
def bisection(a,b):
return
c=a
if (func(c) == 0.0):
break
b=c
else:
a=c
# Driver code
a=-400
b = 500
bisection(a, b)
OUTPUT:
Python 3.7.4 (default, Aug 9 2019, 18:34:13) [MSC v.1915 64 bit (AMD64)]
runfile('D:/dev_python/bisection.py', wdir='D:/dev_python')