Write a cosine function that has an amplitude of 5, a midline of y=4 and a period of pi. f(x)=

f(x) = 5cos((2/pi)x) + 4