y = A sin(Bx) and y = A cos(Bx). The number, A, in front of sine or cosine changes the height of the graph. The value A (in front of sin or cos) affects the amplitude (height). The amplitude (half the distance between the maximum and minimum values of the function) will be |A|, since distance is always positive.