Explain the relationship between annual percentage yield (APY) and annual percentage rate (APR) as values for $r$ in the formulas $A=P(1+r)^t$ and $A=Pe^{rt}$.