Skip to content

Commit fa0772b

Browse files
committed
Replace nan with NaN
1 parent e85b457 commit fa0772b

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

dpnp/dpnp_iface_mathematical.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3495,7 +3495,7 @@ def nan_to_num(x, copy=True, nan=0.0, posinf=None, neginf=None):
34953495
>>> a ** b
34963496
array([ 0, 1, 8, 27, 16, 5])
34973497
3498-
Negative values raised to a non-integral value will result in ``nan``.
3498+
Negative values raised to a non-integral value will result in ``NaN``.
34993499
35003500
>>> d = dp.array([-1.0, -4.0])
35013501
>>> dp.power(d, 1.5)

dpnp/dpnp_iface_trigonometric.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ def _get_accumulation_res_dt(a, dtype):
241241
242242
For real-valued input data types, :obj:`dpnp.arccosh` always returns real output.
243243
For each value that cannot be expressed as a real number or infinity, it yields
244-
``nan``.
244+
``NaN``.
245245
246246
For complex-valued input, :obj:`dpnp.arccosh` is a complex analytic function that
247247
has, by convention, the branch cuts `[-inf, 1]` and is continuous from above.
@@ -322,7 +322,7 @@ def _get_accumulation_res_dt(a, dtype):
322322
323323
For real-valued input data types, :obj:`dpnp.arcsin` always returns real output.
324324
For each value that cannot be expressed as a real number or infinity, it yields
325-
``nan``.
325+
``NaN``.
326326
327327
For complex-valued input, :obj:`dpnp.arcsin` is a complex analytic function that
328328
has, by convention, the branch cuts `[-inf, -1]` and `[1, inf]` and is continuous
@@ -401,7 +401,7 @@ def _get_accumulation_res_dt(a, dtype):
401401
402402
For real-valued input data types, :obj:`dpnp.arcsinh` always returns real output.
403403
For each value that cannot be expressed as a real number or infinity, it yields
404-
``nan``.
404+
``NaN``.
405405
406406
For complex-valued input, :obj:`dpnp.arcsinh` is a complex analytic function that
407407
has, by convention, the branch cuts `[1j, infj]` and `[`1j, -infj]` and is continuous
@@ -483,7 +483,7 @@ def _get_accumulation_res_dt(a, dtype):
483483
484484
For real-valued input data types, :obj:`dpnp.arctan` always returns real output.
485485
For each value that cannot be expressed as a real number or infinity, it yields
486-
``nan``.
486+
``NaN``.
487487
488488
For complex-valued input, :obj:`dpnp.arctan` is a complex analytic function that
489489
has, by convention, the branch cuts `[1j, infj]` and `[-1j, -infj]` and is continuous
@@ -649,7 +649,7 @@ def _get_accumulation_res_dt(a, dtype):
649649
650650
For real-valued input data types, :obj:`dpnp.arctanh` always returns real output.
651651
For each value that cannot be expressed as a real number or infinity, it yields
652-
``nan``.
652+
``NaN``.
653653
654654
For complex-valued input, :obj:`dpnp.arctanh` is a complex analytic function that
655655
has, by convention, the branch cuts `[-1, -inf]` and `[1, inf]` and is is continuous

0 commit comments

Comments
 (0)