Julia v1.3.1 Documentationusing the bitstring func�on: julia> 0.0 == -0.0 true julia> bitstring(0.0) "0000000000000000000000000000000000000000000000000000000000000000" julia> bitstring(-0.0) "100000000000000000000000000000000 standard, these floa�ng-point values are the results of certain arithme�c opera�ons: julia> 1/Inf 0.0 julia> 1/0 Inf julia> -5/0 -Inf julia> 0.000001/0 Inf julia> 0/0 NaN julia> 500 + Inf Inf julia> 220446049250313e-16 julia> eps(1000.) 1.1368683772161603e-13 julia> eps(1e-27) 1.793662034335766e-43 julia> eps(0.0) 5.0e-324 The distance between two adjacent representable floa�ng-point numbers is not constant, but0 码力 | 1276 页 | 4.36 MB | 1 年前3
Julia 1.3.0 DEV Documentationusing the bitstring func�on: julia> 0.0 == -0.0 true julia> bitstring(0.0) "0000000000000000000000000000000000000000000000000000000000000000" julia> bitstring(-0.0) "100000000000000000000000000000000 standard, these floa�ng-point values are the results of certain arithme�c opera�ons: julia> 1/Inf 0.0 julia> 1/0 Inf julia> -5/0 -Inf julia> 0.000001/0 Inf julia> 0/0 NaN julia> 500 + Inf Inf julia> 220446049250313e-16 julia> eps(1000.) 1.1368683772161603e-13 julia> eps(1e-27) 1.793662034335766e-43 julia> eps(0.0) 5.0e-324 The distance between two adjacent representable floa�ng-point numbers is not constant, but0 码力 | 1274 页 | 4.36 MB | 1 年前3
Julia 中文文档表示,可以使用 bitstring 函数 来查看: julia> 0.0 == -0.0 true julia> bitstring(0.0) "0000000000000000000000000000000000000000000000000000000000000000" julia> bitstring(-0.0) "1000000000000000000000000000000 对于这些非有限浮点值相互之间以及关于其它浮点值的顺序的更多讨论,请参见数值比较。根据 IEEE 754 标准,这些浮点值是某些算术运算的结果: 5.2. 浮点数 27 julia> 1/Inf 0.0 julia> 1/0 Inf julia> -5/0 -Inf julia> 0.000001/0 Inf julia> 0/0 NaN julia> 500 + Inf Inf 220446049250313e-16 julia> eps(1000.) 1.1368683772161603e-13 julia> eps(1e-27) 1.793662034335766e-43 julia> eps(0.0) 5.0e-324 两个相邻可表示的浮点数之间的距离并不是常数,数值越小,间距越小,数值越大,间距越大。换 句话说,可表示的浮点数在实数轴上的零点附近最稠密,并沿着远离零点的方向以指数型的速度变0 码力 | 1238 页 | 4.59 MB | 1 年前3
julia 1.10.10using the bitstring function: julia> 0.0 == -0.0 true julia> bitstring(0.0) "0000000000000000000000000000000000000000000000000000000000000000" julia> bitstring(-0.0) "1000000000000000000000000000000 NaN32 NaN not a number a value not == to any floating-point value (including itself) julia> 1/Inf 0.0 julia> 1/0 Inf julia> -5/0 -Inf julia> 0.000001/0 Inf julia> 0/0 NaN julia> 500 + Inf Inf 220446049250313e-16 julia> eps(1000.) 1.1368683772161603e-13 julia> eps(1e-27) 1.793662034335766e-43 julia> eps(0.0) 5.0e-324CHAPTER 4. INTEGERS AND FLOATING-POINT NUMBERS 21 The distance between two adjacent representable0 码力 | 1692 页 | 6.34 MB | 3 月前3
Julia 1.10.9using the bitstring function: julia> 0.0 == -0.0 true julia> bitstring(0.0) "0000000000000000000000000000000000000000000000000000000000000000" julia> bitstring(-0.0) "1000000000000000000000000000000 standard, these floating-point values are the results of certain arithmetic operations: julia> 1/Inf 0.0CHAPTER 4. INTEGERS AND FLOATING-POINT NUMBERS 19 Float16 Float32 Float64 Name Description Inf16 Inf32 220446049250313e-16 julia> eps(1000.) 1.1368683772161603e-13 julia> eps(1e-27) 1.793662034335766e-43 julia> eps(0.0) 5.0e-324 The distance between two adjacent representable floating-point numbers is not constant0 码力 | 1692 页 | 6.34 MB | 3 月前3
Julia 1.11.4function: julia> 0.0 == -0.0 true julia> bitstring(0.0) "0000000000000000000000000000000000000000000000000000000000000000"CHAPTER 5. INTEGERS AND FLOATING-POINT NUMBERS 22 julia> bitstring(-0.0) "100000 standard, these floating-point values are the results of certain arithmetic operations: julia> 1/Inf 0.0 julia> 1/0 Inf julia> -5/0 -Inf julia> 0.000001/0 Inf julia> 0/0 NaN julia> 500 + Inf Inf 220446049250313e-16 julia> eps(1000.) 1.1368683772161603e-13 julia> eps(1e-27) 1.793662034335766e-43 julia> eps(0.0) 5.0e-324 The distance between two adjacent representable floating-point numbers is not constant0 码力 | 2007 页 | 6.73 MB | 3 月前3
Julia 1.11.5 Documentationfunction: julia> 0.0 == -0.0 trueCHAPTER 5. INTEGERS AND FLOATING-POINT NUMBERS 22 julia> bitstring(0.0) "0000000000000000000000000000000000000000000000000000000000000000" julia> bitstring(-0.0) "100000 standard, these floating-point values are the results of certain arithmetic operations: julia> 1/Inf 0.0 julia> 1/0 Inf julia> -5/0 -Inf julia> 0.000001/0 Inf julia> 0/0 NaN julia> 500 + Inf Inf 220446049250313e-16 julia> eps(1000.) 1.1368683772161603e-13 julia> eps(1e-27) 1.793662034335766e-43 julia> eps(0.0) 5.0e-324 The distance between two adjacent representable floating-point numbers is not constant0 码力 | 2007 页 | 6.73 MB | 3 月前3
Julia 1.11.6 Release Notesfunction: julia> 0.0 == -0.0 trueCHAPTER 5. INTEGERS AND FLOATING-POINT NUMBERS 22 julia> bitstring(0.0) "0000000000000000000000000000000000000000000000000000000000000000" julia> bitstring(-0.0) "100000 standard, these floating-point values are the results of certain arithmetic operations: julia> 1/Inf 0.0 julia> 1/0 Inf julia> -5/0 -Inf julia> 0.000001/0 Inf julia> 0/0 NaN julia> 500 + Inf Inf 220446049250313e-16 julia> eps(1000.) 1.1368683772161603e-13 julia> eps(1e-27) 1.793662034335766e-43 julia> eps(0.0) 5.0e-324 The distance between two adjacent representable floating-point numbers is not constant0 码力 | 2007 页 | 6.73 MB | 3 月前3
Julia 1.8.0 DEV Documentationusing the bitstring function: julia> 0.0 == -0.0 true julia> bitstring(0.0) "0000000000000000000000000000000000000000000000000000000000000000" julia> bitstring(-0.0) "1000000000000000000000000000000 standard, these floating-point values are the results of certain arithmetic operations: julia> 1/Inf 0.0 julia> 1/0 Inf julia> -5/0 -Inf julia> 0.000001/0 Inf CHAPTER 4. INTEGERS AND FLOATING-POINT 220446049250313e-16 julia> eps(1000.) 1.1368683772161603e-13 julia> eps(1e-27) 1.793662034335766e-43 julia> eps(0.0) 5.0e-324 The distance between two adjacent representable floating-point numbers is not constant0 码力 | 1463 页 | 5.01 MB | 1 年前3
Julia v1.2.0 Documentationusing the bitstring func�on: julia> 0.0 == -0.0 true julia> bitstring(0.0) "0000000000000000000000000000000000000000000000000000000000000000" julia> bitstring(-0.0) "100000000000000000000000000000000 standard, these floa�ng-point values are the results of certain arithme�c opera�ons: julia> 1/Inf 0.0 julia> 1/0 Inf julia> -5/0 -Inf julia> 0.000001/0 Inf julia> 0/0 NaN julia> 500 + Inf Inf julia> 220446049250313e-16 julia> eps(1000.) 1.1368683772161603e-13 julia> eps(1e-27) 1.793662034335766e-43 julia> eps(0.0) 5.0e-324 The distance between two adjacent representable floa�ng-point numbers is not constant, but0 码力 | 1250 页 | 4.29 MB | 1 年前3
共 87 条
- 1
- 2
- 3
- 4
- 5
- 6
- 9













