Julia 1.11.4-1//3 julia> -4//-12 1//3CHAPTER 7. COMPLEX AND RATIONAL NUMBERS 46 This normalized form for a ratio of integers is unique, so equality of rational values can be tested by checking for equality of the immutable type (except that we omit the constructor here for simplicity), representing an exact ratio of integers: struct Rational{T<:Integer} <: Real num::T den::T end It only makes sense to take ratios of integer values, so the parameter type T is restricted to being a subtype of Integer, and a ratio of integers represents a value on the real number line, so any Rational is an instance of the Real0 码力 | 2007 页 | 6.73 MB | 4 月前3
Julia 1.11.5 Documentation-1//3 julia> -4//-12 1//3CHAPTER 7. COMPLEX AND RATIONAL NUMBERS 46 This normalized form for a ratio of integers is unique, so equality of rational values can be tested by checking for equality of the immutable type (except that we omit the constructor here for simplicity), representing an exact ratio of integers: struct Rational{T<:Integer} <: Real num::T den::T end It only makes sense to take ratios of integer values, so the parameter type T is restricted to being a subtype of Integer, and a ratio of integers represents a value on the real number line, so any Rational is an instance of the Real0 码力 | 2007 页 | 6.73 MB | 4 月前3
Julia 1.11.6 Release Notes-1//3 julia> -4//-12 1//3CHAPTER 7. COMPLEX AND RATIONAL NUMBERS 46 This normalized form for a ratio of integers is unique, so equality of rational values can be tested by checking for equality of the immutable type (except that we omit the constructor here for simplicity), representing an exact ratio of integers: struct Rational{T<:Integer} <: Real num::T den::T end It only makes sense to take ratios of integer values, so the parameter type T is restricted to being a subtype of Integer, and a ratio of integers represents a value on the real number line, so any Rational is an instance of the Real0 码力 | 2007 页 | 6.73 MB | 4 月前3
Julia 1.12.0 RC1-1//3 julia> -4//-12 1//3CHAPTER 7. COMPLEX AND RATIONAL NUMBERS 46 This normalized form for a ratio of integers is unique, so equality of rational values can be tested by checking for equality of the immutable type (except that we omit the constructor here for simplicity), representing an exact ratio of integers: struct Rational{T<:Integer} <: Real num::T den::T end It only makes sense to take ratios of integer values, so the parameter type T is restricted to being a subtype of Integer, and a ratio of integers represents a value on the real number line, so any Rational is an instance of the Real0 码力 | 2057 页 | 7.44 MB | 4 月前3
Julia 1.12.0 Beta4-1//3 julia> -4//-12 1//3CHAPTER 7. COMPLEX AND RATIONAL NUMBERS 46 This normalized form for a ratio of integers is unique, so equality of rational values can be tested by checking for equality of the immutable type (except that we omit the constructor here for simplicity), representing an exact ratio of integers: struct Rational{T<:Integer} <: Real num::T den::T end It only makes sense to take ratios of integer values, so the parameter type T is restricted to being a subtype of Integer, and a ratio of integers represents a value on the real number line, so any Rational is an instance of the Real0 码力 | 2057 页 | 7.44 MB | 4 月前3
Julia 1.12.0 Beta3-1//3 julia> -4//-12 1//3CHAPTER 7. COMPLEX AND RATIONAL NUMBERS 46 This normalized form for a ratio of integers is unique, so equality of rational values can be tested by checking for equality of the immutable type (except that we omit the constructor here for simplicity), representing an exact ratio of integers: struct Rational{T<:Integer} <: Real num::T den::T end It only makes sense to take ratios of integer values, so the parameter type T is restricted to being a subtype of Integer, and a ratio of integers represents a value on the real number line, so any Rational is an instance of the Real0 码力 | 2057 页 | 7.44 MB | 4 月前3
julia 1.12.0 beta1-1//3 julia> -4//-12 1//3CHAPTER 7. COMPLEX AND RATIONAL NUMBERS 46 This normalized form for a ratio of integers is unique, so equality of rational values can be tested by checking for equality of the immutable type (except that we omit the constructor here for simplicity), representing an exact ratio of integers: struct Rational{T<:Integer} <: Real num::T den::T end It only makes sense to take ratios of integer values, so the parameter type T is restricted to being a subtype of Integer, and a ratio of integers represents a value on the real number line, so any Rational is an instance of the Real0 码力 | 2047 页 | 7.41 MB | 4 月前3
julia 1.13.0 DEV-1//3 julia> -4//-12 1//3CHAPTER 7. COMPLEX AND RATIONAL NUMBERS 46 This normalized form for a ratio of integers is unique, so equality of rational values can be tested by checking for equality of the immutable type (except that we omit the constructor here for simplicity), representing an exact ratio of integers: struct Rational{T<:Integer} <: Real num::T den::T end It only makes sense to take ratios of integer values, so the parameter type T is restricted to being a subtype of Integer, and a ratio of integers represents a value on the real number line, so any Rational is an instance of the Real0 码力 | 2058 页 | 7.45 MB | 4 月前3
julia 1.10.102//3 julia> -4//8 -1//2 julia> 5//-15 -1//3 julia> -4//-12 1//3 This normalized form for a ratio of integers is unique, so equality of rational values can be tested by checking for equality of the immutable type (except that we omit the constructor here for simplicity), representing an exact ratio of integers: struct Rational{T<:Integer} <: Real num::T den::T end It only makes sense to take ratios of integer values, so the parameter type T is restricted to being a subtype of Integer, and a ratio of integers represents a value on the real number line, so any Rational is an instance of the Real0 码力 | 1692 页 | 6.34 MB | 4 月前3
Julia 1.10.92//3 julia> -4//8 -1//2 julia> 5//-15 -1//3 julia> -4//-12 1//3 This normalized form for a ratio of integers is unique, so equality of rational values can be tested by checking for equality of the immutable type (except that we omit the constructor here for simplicity), representing an exact ratio of integers: struct Rational{T<:Integer} <: Real num::T den::T end It only makes sense to take ratios of integer values, so the parameter type T is restricted to being a subtype of Integer, and a ratio of integers represents a value on the real number line, so any Rational is an instance of the Real0 码力 | 1692 页 | 6.34 MB | 4 月前3
共 14 条
- 1
- 2













