forked from stdlib-js/stdlib
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrepl.txt
More file actions
45 lines (35 loc) · 1.05 KB
/
repl.txt
File metadata and controls
45 lines (35 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
{{alias}}( x, y )
Computes the number of representable half-precision floating-point values
that separate two half-precision floating-point numbers along the real
number line.
Adjacent half-precision floating-point numbers differ by 1 ulp (unit in
the last place).
Signed zeros differ only in the sign bit but are considered numerically
equal, and thus their ULP difference is 0.
If provided `NaN` as any argument, the function returns `NaN`.
Parameters
----------
x: number
First input value.
y: number
Second input value.
Returns
-------
z: number
Result.
Examples
--------
> var v = {{alias}}( 1.0, 1.0+{{alias:@stdlib/constants/float16/eps}} )
1.0
> v = {{alias}}( 1.0+{{alias:@stdlib/constants/float16/eps}}, 1.0 )
1.0
> v = {{alias}}( 1.0, 1.0+{{alias:@stdlib/constants/float16/eps}}*2.0 )
2.0
> v = {{alias}}( 1.0, NaN )
NaN
> v = {{alias}}( NaN, 1.0 )
NaN
> v = {{alias}}( NaN, NaN )
NaN
See Also
--------