Skip to content

A limit at a symbolic point is NaN where its numerator tends to a zero not written as u - u: (tan(a+x) - tan(a))/x #2639

Backlog

Description

@Rafael-SOWNet

Follow-up to #2628, measured on master a1b69bf, which includes #2632. A limit at a symbolic point is still NaN when the numerator's limit is 0 written in a form that is not u - u. #2632 reads only a constant minus itself, written the same way.

.Limit(x, 0) master the numerator's limit expected
(tan(a + x) - tan(a)) / x NaN sin(a) / cos(a) - tan(a) 1 / cos(a)^2
(cosh(a x) - 1) / x^2 NaN after one l'Hopital step, 1/2 a + -1/2 a a^2 / 2
(artanh(a + x) - artanh(a)) / x NaN 1/2 ln(2 / (1 - a) - 1) - 1/2 ln((1 + a) / (1 - a)) 1 / (1 - a^2)
(sec(a + x) - sec(a)) / x, cot, csc, arcosh NaN the derivative
(((a + x)^2)^2 - a^4) / x NaN (+oo * (-a^4 + a^4)) -a^4 + a^4 4 a^3
(cosh(a x) - 1) / x 1/2 a + -1/2 a 0

Found by a new sweep (symlimitcheck) that takes limits at a symbolic point and with a symbolic parameter, then compares the answers by value at a = -5/2, -7/10, 3/5, 19/10 and 33/10. On this master it reports 82 rows of NaN where the values settle, across 18 expressions.

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