Skip to content

missing Complex expm1 and log1p #3141

Closed
@stevengj

Description

The expm1 and log1p functions are not yet implemented for Complex types.

In principle, I think these are straightforward: use a Taylor expansion for small arguments z (e.g. it is cheapest to check whether |real(z)|+|imag(z)| is small), and explicit function exp/log calls otherwise. The only annoyance is that you have to change the "small" cutoff and the order of the Taylor series depending upon the precision. For Float64 and Float32 this is simple, but for BigFloat matters are hairier.

Activity

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

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions