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.13.0 DEVfunction: 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 码力 | 2058 页 | 7.45 MB | 3 月前3
Julia 1.12.0 RC1function: 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 码力 | 2057 页 | 7.44 MB | 3 月前3
Julia 1.12.0 Beta4function: 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 码力 | 2057 页 | 7.44 MB | 3 月前3
Julia 1.12.0 Beta3function: 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 码力 | 2057 页 | 7.44 MB | 3 月前3
julia 1.12.0 beta1function: 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 码力 | 2047 页 | 7.41 MB | 3 月前3
共 12 条
- 1
- 2













