Division without division
(a) Suppose your computer or calculator does not have the capability to perform division of numbers. Write an algorithm that will approximate the quantity 1/r for any number r = 0 (note that your algorithm should not use division itself).
(b) Write a function that will perform Newton’s method, but modified so that it uses your algorithmfor division.