Finding Amplitude And Midline From An Equation