Skip to content

incorrect results for dpctl.tensor.asin and dpctl.tensor.asin #1986

Open
@vtavana

Description

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

import numpy, dpctl.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)

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions