Skip to content

cbrt(::Complex) #36534

@stevengj

Description

@stevengj

As noted on discourse, this method is missing.

An obvious (but inconsistent, see below) implementation would be:

cbrt(z::Complex) = cbrt(abs(z)) * cis(angle(z)/3)

but maybe there is a faster way?

Might also be worth having a fallback method too: (this is inconsistent too)

cbrt(x::Number) = x^(1//3)

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureIndicates new feature / enhancement requestsmathsMathematical functions

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions