Skip to content

ComplexNumber.pow() doesn't work as expected for a negative power #1

@InYourHead

Description

@InYourHead

I have mathematical operation:
ComplexNumber cosSinPow=ComplexNumber.multiply(omega, ComplexNumber.pow(coSin, -k * j));

where:
k=8;
j=1;
omega=1.0+0.0i;
coSin=0.9917900138232462+0.127877161684506i;

Expected result: 0.51839256831052 -0.85514276300535 i
Current result: 0.9917900138232462+0.127877161684506i

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions