Write a computer program to approximate the root of the equation in two cases:
Write a computer program to approximate the root of the equation in two cases: (i) (ii) xo = 0.5,x1 = 0.6 to within accuracy 10-15 xo = 0, x1 = 1 to within accuracy 10-15. The decimal places to the right of the decimal point must be at least 15 places. — Notes: The program…