APY = (1 + r/n)^n − 1

由名义利率与复利频率求实际年化收益率

输入名义年利率 r 与每年复利次数 n,求 APY。

📌 计算说明
  • APY = (1+r/n)^n−1。
  • 5%,月复利 → 约 5.116%。