Skip to content

The limits of x^(x - 1) and (e^x - 1)^(x - 1) at 0- are +oo; the principal value tends to -oo + pi i #2693

Description

@Rafael-SOWNet

On master (52a6530), two limits from the left of 0 return +oo where the principal value tends to infinity along the negative real axis:

limit at 0- master principal value at x = -1e-20 (mpmath)
x^(x - 1) +oo -1.0E+20 + 3.1415927i
(e^x - 1)^(x - 1) +oo -1.0E+20 + 3.1415927i
x^x 1 1.0 - 3.1415927E-20i (right)
sin(x)^x 1 1.0 - 3.1415927E-20i (right)

x^(x - 1) is x^x / x. x^x tends to 1 and 1/x to -oo, so the real part tends to -oo and the imaginary part to pi. +oo is the limit from the right and is wrong from the left.

Other limits from the left whose values are not real are left unevaluated, by the convention the tests AComplexSideIsNotRead and AnExponentThatOnlyTendsToAWholeNumberIsLeftAloneUnderANegativeBase pin: sin(x^x) and sin(x)^(x - 1) at 0- stay as limitleft(…). So the rows above are answered where the convention says they should be declined, and two of the four are answered wrongly. Which PR introduced them has not been bisected.

Found while checking #2691.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions