Skip to content

hypot with complex arguments #31941

@giordano

Description

@giordano

While looking at #31922 I noted that currently

julia> hypot(im)
1.0

julia> hypot(im, 1)
1.4142135623730951

which doesn't look correct given the meaning of hypot as "more precise version of \sqrt{\sum x_i^2}". I couldn't find any test about hypot with complex arguments, so I think this case was never taken into account.

Metadata

Metadata

Assignees

No one assigned

    Labels

    complexComplex numbersdocsThis change adds or pertains to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions