Skip to content

A limit reaching the arcsin or arccos cut takes the principal side, not the side approached: arcsin(2 + i/x) at +oo #2709

In review

Description

@Rafael-SOWNet

On master (409d688), a limit that reaches a branch cut of arcsin or arccos from the side the principal value does not take is answered with the principal value, and in some limits the side taken disagrees with the library's own eval.

Approaching the cut from the other side (values from mpmath; eval is master's):

limit master eval of master's answer true limit
arcsin(2 + i/x) at +oo arcsin(2) 1.5708 - 1.3170i 1.5708 + 1.3170i (x = 1e10, 1e20)
arccos(2 + i/x) at +oo arccos(2) 1.3170i -1.3170i

ln(-1 + i/x) and sqrt(-1 + i/x) at +oo are declined, which is safe.

The limit and eval taking different sides on the cut:

limit master master's eval near the destination
arccos(-x) / ln(x) at +oo -i eval(arccos(-10^30) / ln(10^30)) = 0.0455 + 1.0100i, so +i
(1/x) / arccos(1/x) at 0- -ooi the opposite sign

Which side a value on the cut takes is a convention, but the limit should agree with eval, and a limit approaching from off the cut should take the side it approaches from.

Found by a limit sweep after #2705.

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