Finding Amplitude Of A Function