为什么x ^( - 1/0)= 0

时间:2017-11-14 03:31:50

标签: haskell math

表达式x ^(1/0)导致未定义,我猜x ^( - 1/0)= 1 / x ^(1/0),但为什么这等于0?什么指数规则在这里发挥作用?

我认为(1/0)总是返回undefined,那么为什么如果这个指数在分子或分母中会有区别呢?

2 个答案:

答案 0 :(得分:4)

FPU规则。浮点数为1/0导致+ INF,你有-1/0导致-INF。 -INF功率的任何东西都将为零。

答案 1 :(得分:2)

数学上limit of x tending to 0 of 1/x is infinity

在此范围内,您可以将1/0视为一个巨大的数字(hn)

因此可以像这样查看与x^(-1/0)相同的函数1/(xˆ(hn))

for x = 0, 0 to any power is still 0 

for (0 < x < 1), x^(hn) will tend to be 0, hence we end up with 1/0 which tends to infinity.

for x = 1, xˆ(hn) will be 1

for x > 1, x^(hn) will tend to also be huge number, hence we end up with 1/(hn) which tends to be 0

因此x^(-1/0) = 0的简单结果在数学上不正确

相关问题