Skip to content

conj(sqrt(complex(-5,0))) is not the same as sqrt(conj(complex(-5,0))) #2843

Closed
@ViralBShah

Description

@ViralBShah

An example from page 15 of http://www.cs.berkeley.edu/~wkahan/JAVAhurt.pdf

julia> conj(sqrt(complex(-5,-0)))
0.0 - 2.23606797749979im

julia> sqrt(conj(complex(-5,-0)))
0.0 + 2.23606797749979im

This is also the case with log:

julia> conj(log(complex(-5,0)))
1.6094379124341003 - 3.141592653589793im

julia> log(conj(complex(-5,0)))
1.6094379124341003 + 3.141592653589793im

Octave gives the same result in both cases.

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs decisionA decision on this change is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions