julia 1.10.10changed: julia> a = [1,2,3] # an array of 3 integers 3-element Vector{Int64}: 1 2 3 julia> b = a # both b and a are names for the same array! 3-element Vector{Int64}: 1 2 3 Here, the line b = a does change the first element 42 julia> a = 3.14159 # a is now the name of a different object 3.14159 julia> b # b refers to the original array object, which has been mutated 3-element Vector{Int64}: 42 numeric types: Expression Name Description +x unary plus the identity operation -x unary minus maps values to their additive inverses x + y binary plus performs addition x - y binary minus performs subtraction0 码力 | 1692 页 | 6.34 MB | 4 月前3
Julia 1.10.9changed: julia> a = [1,2,3] # an array of 3 integers 3-element Vector{Int64}: 1 2 3 julia> b = a # both b and a are names for the same array! 3-element Vector{Int64}: 1 2 3 Here, the line b = a does change the first element 42 julia> a = 3.14159 # a is now the name of a different object 3.14159 julia> b # b refers to the original array object, which has been mutated 3-element Vector{Int64}: 42 numeric types: Expression Name Description +x unary plus the identity operation -x unary minus maps values to their additive inverses x + y binary plus performs addition x - y binary minus performs subtraction0 码力 | 1692 页 | 6.34 MB | 4 月前3
Julia 1.11.5 Documentationchanged: julia> a = [1,2,3] # an array of 3 integers 3-element Vector{Int64}: 1 2 3 julia> b = a # both b and a are names for the same array! 3-element Vector{Int64}: 1 2 3 Here, the line b = a does change the first element 42 julia> a = 3.14159 # a is now the name of a different object 3.14159 julia> b # b refers to the original array object, which has been mutated 3-element Vector{Int64}: 42 numeric types: Expression Name Description +x unary plus the identity operation -x unary minus maps values to their additive inverses x + y binary plus performs addition x - y binary minus performs subtraction0 码力 | 2007 页 | 6.73 MB | 4 月前3
Julia 1.11.6 Release Noteschanged: julia> a = [1,2,3] # an array of 3 integers 3-element Vector{Int64}: 1 2 3 julia> b = a # both b and a are names for the same array! 3-element Vector{Int64}: 1 2 3 Here, the line b = a does change the first element 42 julia> a = 3.14159 # a is now the name of a different object 3.14159 julia> b # b refers to the original array object, which has been mutated 3-element Vector{Int64}: 42 numeric types: Expression Name Description +x unary plus the identity operation -x unary minus maps values to their additive inverses x + y binary plus performs addition x - y binary minus performs subtraction0 码力 | 2007 页 | 6.73 MB | 4 月前3
Julia 1.11.4changed: julia> a = [1,2,3] # an array of 3 integers 3-element Vector{Int64}: 1 2 3 julia> b = a # both b and a are names for the same array! 3-element Vector{Int64}: 1 2 3 Here, the line b = a does change the first element 42 julia> a = 3.14159 # a is now the name of a different object 3.14159 julia> b # b refers to the original array object, which has been mutated 3-element Vector{Int64}: 42 numeric types: Expression Name Description +x unary plus the identity operation -x unary minus maps values to their additive inverses x + y binary plus performs addition x - y binary minus performs subtraction0 码力 | 2007 页 | 6.73 MB | 4 月前3
julia 1.13.0 DEVchanged: julia> a = [1,2,3] # an array of 3 integers 3-element Vector{Int64}: 1 2 3 julia> b = a # both b and a are names for the same array! 3-element Vector{Int64}: 1 2 3 Here, the line b = a does first element 42 julia> a = 3.14159 # a is now the name of a different objectCHAPTER 4. VARIABLES 14 3.14159 julia> b # b refers to the original array object, which has been mutated 3-element Vector{Int64}: numeric types: Expression Name Description +x unary plus the identity operation -x unary minus maps values to their additive inverses x + y binary plus performs addition x - y binary minus performs subtraction0 码力 | 2058 页 | 7.45 MB | 4 月前3
Julia 1.12.0 Beta4changed: julia> a = [1,2,3] # an array of 3 integers 3-element Vector{Int64}: 1 2 3 julia> b = a # both b and a are names for the same array! 3-element Vector{Int64}: 1 2 3 Here, the line b = a does first element 42 julia> a = 3.14159 # a is now the name of a different objectCHAPTER 4. VARIABLES 14 3.14159 julia> b # b refers to the original array object, which has been mutated 3-element Vector{Int64}: numeric types: Expression Name Description +x unary plus the identity operation -x unary minus maps values to their additive inverses x + y binary plus performs addition x - y binary minus performs subtraction0 码力 | 2057 页 | 7.44 MB | 4 月前3
Julia 1.12.0 Beta3changed: julia> a = [1,2,3] # an array of 3 integers 3-element Vector{Int64}: 1 2 3 julia> b = a # both b and a are names for the same array! 3-element Vector{Int64}: 1 2 3 Here, the line b = a does first element 42 julia> a = 3.14159 # a is now the name of a different objectCHAPTER 4. VARIABLES 14 3.14159 julia> b # b refers to the original array object, which has been mutated 3-element Vector{Int64}: numeric types: Expression Name Description +x unary plus the identity operation -x unary minus maps values to their additive inverses x + y binary plus performs addition x - y binary minus performs subtraction0 码力 | 2057 页 | 7.44 MB | 4 月前3
julia 1.12.0 beta1changed: julia> a = [1,2,3] # an array of 3 integers 3-element Vector{Int64}: 1 2 3 julia> b = a # both b and a are names for the same array! 3-element Vector{Int64}: 1 2 3 Here, the line b = a does first element 42 julia> a = 3.14159 # a is now the name of a different objectCHAPTER 4. VARIABLES 14 3.14159 julia> b # b refers to the original array object, which has been mutated 3-element Vector{Int64}: numeric types: Expression Name Description +x unary plus the identity operation -x unary minus maps values to their additive inverses x + y binary plus performs addition x - y binary minus performs subtraction0 码力 | 2047 页 | 7.41 MB | 4 月前3
Julia 1.12.0 RC1changed: julia> a = [1,2,3] # an array of 3 integers 3-element Vector{Int64}: 1 2 3 julia> b = a # both b and a are names for the same array! 3-element Vector{Int64}: 1 2 3 Here, the line b = a does first element 42 julia> a = 3.14159 # a is now the name of a different objectCHAPTER 4. VARIABLES 14 3.14159 julia> b # b refers to the original array object, which has been mutated 3-element Vector{Int64}: numeric types: Expression Name Description +x unary plus the identity operation -x unary minus maps values to their additive inverses x + y binary plus performs addition x - y binary minus performs subtraction0 码力 | 2057 页 | 7.44 MB | 4 月前3
共 23 条
- 1
- 2
- 3













