It is my brothers assignment in which I have created three different types of functions for task you can create your own it works by calculating every value using Mid point method