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)。