Skip to content

incorrect results for dpnp.tensor.asin and dpnp.tensor.asinh #2896

Description

@vtavana

The result for the The following examples differ from NumPy. Changing dtype to "c8" will return the correct result.

import numpy, dpnp.tensor as dpt
a=numpy.array(1.+64387093.j)
numpy.asin(a)
# np.complex128(1.5531063034636457e-08+18.673570932293245j)

ia=dpt.asarray(1.+64387093.j)
dpt.asin(ia)
# array(1.57079633+36.04365339j)

a=numpy.array(-67108050.+1.j)
numpy.asinh(a)
# np.complex128(-18.71496174549975+1.4901341940348435e-08j)

ia=dpt.asarray(-67108050.+1.j)
dpt.asinh(ia)
# array(-inf+0.j)

Activity

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions