Skip to content

Solving a periodic function of 1/x, sqrt(x) or x^(1/3) drops the branch through n = 0: tan(1/x) = 0 and cos(sqrt(x)) = 1 give { } #2710

Description

@Rafael-SOWNet

On master (409d688), solving f(g(x)) = c, where f is periodic and the branch of solutions is c * n with no offset, drops that branch whole when g is 1/u, sqrt, x^(1/3), x^(2/3) or 1/sqrt. Real roots go missing. Values checked with mpmath and with master's eval.

equation master missing real roots
tan(1/x) = 0 { } 1/(pi k), k ≠ 0
cos(1/x) = 1 { } 1/(2 pi k), k ≠ 0
sin(1/x) = 0 1/(pi + 2 pi n) 1/(2 pi k), e.g. -1/(2 pi)
cos(sqrt(x)) = 1, tan(sqrt(x)) = 0 { } 0, pi^2, 4 pi^2, …
sin(sqrt(x)) = 0 (pi + 2 pi n)^2 only 0, 4 pi^2, …
sin(sqrt(x + 1)) = 0 x = -1, among others
e^(sqrt(x)) = 1 { } 0
cos(x^(1/3)) = 1 { } (2 pi k)^3, including 0
cos(x^(2/3)) = 1, tan(x^(2/3)) = 0 -(2 pi n)^(3/2) provided 2 pi n > 0 0 and every positive root, e.g. pi^(3/2)

The branch is the one whose member is degenerate at n = 0 (1/0, or arg(0) in the condition the root writes), so it looks as if the branch is discarded rather than n = 0 being excluded. sin(e^x) = … already writes m in ZZ \ { 0 }, which is the shape needed.

The reverse also happens: cos(pi/x) = 1 gives pi / (2 pi n) and cosh(pi/x) = 1 gives pi / (2 pi i n). These keep the branch but include the undefined n = 0 member.

68 rows of a solve 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