x^y

Compute a base raised to a power, including large integer exponents.

📐 計算公式
冪運算 x^y:結果 r=x 的 y 次方;科學計數輸出 r,千分位輸出原始值;常用對數 log10(r) 僅在 r>0 時有定義;倒數結果 1/r=x 的負 y 次方。校驗:x、y 必填且有限;0 的非正次冪無定義;負底數只在 y 為精確整數時有實數主值(如 −2^2.0000000000001 屬非整數指數,直接報「無定義」,不再誤報溢位);結果超出雙精度範圍才提示溢位。輔助表複用同一校驗。

計算底數 x 的 y 次冪。

Formula & Standard References

Item Formula / Note Source / Standard
General definition x^y = exp( y · ln x ) for x > 0 ISO 80000-2:2019, Quantities and units - Part 2: Mathematics
Positive integer exponent x^n = x · x · ... · x with n factors ISO 80000-2:2019, Quantities and units - Part 2: Mathematics
Zero and negative exponents x^0 = 1; x^(-n) = 1/x^n ISO 80000-2:2019, Quantities and units - Part 2: Mathematics
Fractional exponent x^(1/n) is the n-th root of x ISO 80000-2:2019, Quantities and units - Part 2: Mathematics
📌 計算說明
  • 2^10 = 1024。
  • 支援小數指數(開方即 y=0.5)。