dpctl icon indicating copy to clipboard operation
dpctl copied to clipboard

incorrect results for `dpctl.tensor.asin` and `dpctl.tensor.asinh`

Open vtavana opened this issue 1 year ago • 0 comments

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)

vtavana avatar Feb 04 '25 22:02 vtavana