Let the area of the region bounded by the curve \( y = \max\{\sin x , \cos x\} \), lines \( x = 0 \), \( x = \frac{3\pi}{2} \), and the x-axis be \( A \). Then, \( A + A^2 \) is equal to \( \_\_\_\_\_ \).