 julia 1.10.10containing the resulting values: julia> map(round, [1.2, 3.5, 1.7]) 3-element Vector{Float64}: 1.0 4.0 2.0 This is fine if a named function effecting the transform already exists to pass as the first vectors have different length). julia> f(x,y) = 3x + 4y; julia> A = [1.0, 2.0, 3.0]; julia> B = [4.0, 5.0, 6.0]; julia> f.(pi, A) 3-element Vector{Float64}: 13.42477796076938 17.42477796076938 21 operation, and assignment in an expression into the "dotted" version. julia> Y = [1.0, 2.0, 3.0, 4.0]; julia> X = similar(Y); # pre-allocate output array julia> @. X = sin(cos(Y)) # equivalent to X0 码力 | 1692 页 | 6.34 MB | 3 月前3 julia 1.10.10containing the resulting values: julia> map(round, [1.2, 3.5, 1.7]) 3-element Vector{Float64}: 1.0 4.0 2.0 This is fine if a named function effecting the transform already exists to pass as the first vectors have different length). julia> f(x,y) = 3x + 4y; julia> A = [1.0, 2.0, 3.0]; julia> B = [4.0, 5.0, 6.0]; julia> f.(pi, A) 3-element Vector{Float64}: 13.42477796076938 17.42477796076938 21 operation, and assignment in an expression into the "dotted" version. julia> Y = [1.0, 2.0, 3.0, 4.0]; julia> X = similar(Y); # pre-allocate output array julia> @. X = sin(cos(Y)) # equivalent to X0 码力 | 1692 页 | 6.34 MB | 3 月前3
 Julia 1.10.9containing the resulting values: julia> map(round, [1.2, 3.5, 1.7]) 3-element Vector{Float64}: 1.0 4.0 2.0 This is fine if a named function effecting the transform already exists to pass as the first vectors have different length). julia> f(x,y) = 3x + 4y; julia> A = [1.0, 2.0, 3.0]; julia> B = [4.0, 5.0, 6.0]; julia> f.(pi, A) 3-element Vector{Float64}: 13.42477796076938 17.42477796076938 21 operation, and assignment in an expression into the "dotted" version. julia> Y = [1.0, 2.0, 3.0, 4.0]; julia> X = similar(Y); # pre-allocate output array julia> @. X = sin(cos(Y)) # equivalent to X0 码力 | 1692 页 | 6.34 MB | 3 月前3 Julia 1.10.9containing the resulting values: julia> map(round, [1.2, 3.5, 1.7]) 3-element Vector{Float64}: 1.0 4.0 2.0 This is fine if a named function effecting the transform already exists to pass as the first vectors have different length). julia> f(x,y) = 3x + 4y; julia> A = [1.0, 2.0, 3.0]; julia> B = [4.0, 5.0, 6.0]; julia> f.(pi, A) 3-element Vector{Float64}: 13.42477796076938 17.42477796076938 21 operation, and assignment in an expression into the "dotted" version. julia> Y = [1.0, 2.0, 3.0, 4.0]; julia> X = similar(Y); # pre-allocate output array julia> @. X = sin(cos(Y)) # equivalent to X0 码力 | 1692 页 | 6.34 MB | 3 月前3
 Julia 1.11.4containing the resulting values: julia> map(round, [1.2, 3.5, 1.7]) 3-element Vector{Float64}: 1.0 4.0 2.0 This is fine if a named function effecting the transform already exists to pass as the first vectors have different length). julia> f(x, y) = 3x + 4y; julia> A = [1.0, 2.0, 3.0]; julia> B = [4.0, 5.0, 6.0]; julia> f.(pi, A) 3-element Vector{Float64}: 13.42477796076938 17.42477796076938 21 operation, and assignment in an expression into the "dotted" version. julia> Y = [1.0, 2.0, 3.0, 4.0];CHAPTER 9. FUNCTIONS 93 julia> X = similar(Y); # pre-allocate output array julia> @. X = sin(cos(Y))0 码力 | 2007 页 | 6.73 MB | 3 月前3 Julia 1.11.4containing the resulting values: julia> map(round, [1.2, 3.5, 1.7]) 3-element Vector{Float64}: 1.0 4.0 2.0 This is fine if a named function effecting the transform already exists to pass as the first vectors have different length). julia> f(x, y) = 3x + 4y; julia> A = [1.0, 2.0, 3.0]; julia> B = [4.0, 5.0, 6.0]; julia> f.(pi, A) 3-element Vector{Float64}: 13.42477796076938 17.42477796076938 21 operation, and assignment in an expression into the "dotted" version. julia> Y = [1.0, 2.0, 3.0, 4.0];CHAPTER 9. FUNCTIONS 93 julia> X = similar(Y); # pre-allocate output array julia> @. X = sin(cos(Y))0 码力 | 2007 页 | 6.73 MB | 3 月前3
 Julia 1.11.5 Documentationcontaining the resulting values: julia> map(round, [1.2, 3.5, 1.7]) 3-element Vector{Float64}: 1.0 4.0 2.0 This is fine if a named function effecting the transform already exists to pass as the first vectors have different length). julia> f(x, y) = 3x + 4y; julia> A = [1.0, 2.0, 3.0]; julia> B = [4.0, 5.0, 6.0]; julia> f.(pi, A) 3-element Vector{Float64}: 13.42477796076938 17.42477796076938 21 operation, and assignment in an expression into the "dotted" version. julia> Y = [1.0, 2.0, 3.0, 4.0];CHAPTER 9. FUNCTIONS 93 julia> X = similar(Y); # pre-allocate output array julia> @. X = sin(cos(Y))0 码力 | 2007 页 | 6.73 MB | 3 月前3 Julia 1.11.5 Documentationcontaining the resulting values: julia> map(round, [1.2, 3.5, 1.7]) 3-element Vector{Float64}: 1.0 4.0 2.0 This is fine if a named function effecting the transform already exists to pass as the first vectors have different length). julia> f(x, y) = 3x + 4y; julia> A = [1.0, 2.0, 3.0]; julia> B = [4.0, 5.0, 6.0]; julia> f.(pi, A) 3-element Vector{Float64}: 13.42477796076938 17.42477796076938 21 operation, and assignment in an expression into the "dotted" version. julia> Y = [1.0, 2.0, 3.0, 4.0];CHAPTER 9. FUNCTIONS 93 julia> X = similar(Y); # pre-allocate output array julia> @. X = sin(cos(Y))0 码力 | 2007 页 | 6.73 MB | 3 月前3
 Julia 1.11.6 Release Notescontaining the resulting values: julia> map(round, [1.2, 3.5, 1.7]) 3-element Vector{Float64}: 1.0 4.0 2.0 This is fine if a named function effecting the transform already exists to pass as the first vectors have different length). julia> f(x, y) = 3x + 4y; julia> A = [1.0, 2.0, 3.0]; julia> B = [4.0, 5.0, 6.0]; julia> f.(pi, A) 3-element Vector{Float64}: 13.42477796076938 17.42477796076938 21 operation, and assignment in an expression into the "dotted" version. julia> Y = [1.0, 2.0, 3.0, 4.0];CHAPTER 9. FUNCTIONS 93 julia> X = similar(Y); # pre-allocate output array julia> @. X = sin(cos(Y))0 码力 | 2007 页 | 6.73 MB | 3 月前3 Julia 1.11.6 Release Notescontaining the resulting values: julia> map(round, [1.2, 3.5, 1.7]) 3-element Vector{Float64}: 1.0 4.0 2.0 This is fine if a named function effecting the transform already exists to pass as the first vectors have different length). julia> f(x, y) = 3x + 4y; julia> A = [1.0, 2.0, 3.0]; julia> B = [4.0, 5.0, 6.0]; julia> f.(pi, A) 3-element Vector{Float64}: 13.42477796076938 17.42477796076938 21 operation, and assignment in an expression into the "dotted" version. julia> Y = [1.0, 2.0, 3.0, 4.0];CHAPTER 9. FUNCTIONS 93 julia> X = similar(Y); # pre-allocate output array julia> @. X = sin(cos(Y))0 码力 | 2007 页 | 6.73 MB | 3 月前3
 julia 1.13.0 DEVcontaining the resulting values: julia> map(round, [1.2, 3.5, 1.7]) 3-element Vector{Float64}: 1.0 4.0 2.0 This is fine if a named function effecting the transform already exists to pass as the first vectors have different length). julia> f(x, y) = 3x + 4y; julia> A = [1.0, 2.0, 3.0]; julia> B = [4.0, 5.0, 6.0]; julia> f.(pi, A) 3-element Vector{Float64}: 13.42477796076938 17.42477796076938 21 operation, and assignment in an expression into the "dotted" version. julia> Y = [1.0, 2.0, 3.0, 4.0];CHAPTER 9. FUNCTIONS 93 julia> X = similar(Y); # pre-allocate output array julia> @. X = sin(cos(Y))0 码力 | 2058 页 | 7.45 MB | 3 月前3 julia 1.13.0 DEVcontaining the resulting values: julia> map(round, [1.2, 3.5, 1.7]) 3-element Vector{Float64}: 1.0 4.0 2.0 This is fine if a named function effecting the transform already exists to pass as the first vectors have different length). julia> f(x, y) = 3x + 4y; julia> A = [1.0, 2.0, 3.0]; julia> B = [4.0, 5.0, 6.0]; julia> f.(pi, A) 3-element Vector{Float64}: 13.42477796076938 17.42477796076938 21 operation, and assignment in an expression into the "dotted" version. julia> Y = [1.0, 2.0, 3.0, 4.0];CHAPTER 9. FUNCTIONS 93 julia> X = similar(Y); # pre-allocate output array julia> @. X = sin(cos(Y))0 码力 | 2058 页 | 7.45 MB | 3 月前3
 Julia 1.12.0 RC1containing the resulting values: julia> map(round, [1.2, 3.5, 1.7]) 3-element Vector{Float64}: 1.0 4.0 2.0 This is fine if a named function effecting the transform already exists to pass as the first vectors have different length). julia> f(x, y) = 3x + 4y; julia> A = [1.0, 2.0, 3.0]; julia> B = [4.0, 5.0, 6.0]; julia> f.(pi, A) 3-element Vector{Float64}: 13.42477796076938 17.42477796076938 21 operation, and assignment in an expression into the "dotted" version. julia> Y = [1.0, 2.0, 3.0, 4.0];CHAPTER 9. FUNCTIONS 93 julia> X = similar(Y); # pre-allocate output array julia> @. X = sin(cos(Y))0 码力 | 2057 页 | 7.44 MB | 3 月前3 Julia 1.12.0 RC1containing the resulting values: julia> map(round, [1.2, 3.5, 1.7]) 3-element Vector{Float64}: 1.0 4.0 2.0 This is fine if a named function effecting the transform already exists to pass as the first vectors have different length). julia> f(x, y) = 3x + 4y; julia> A = [1.0, 2.0, 3.0]; julia> B = [4.0, 5.0, 6.0]; julia> f.(pi, A) 3-element Vector{Float64}: 13.42477796076938 17.42477796076938 21 operation, and assignment in an expression into the "dotted" version. julia> Y = [1.0, 2.0, 3.0, 4.0];CHAPTER 9. FUNCTIONS 93 julia> X = similar(Y); # pre-allocate output array julia> @. X = sin(cos(Y))0 码力 | 2057 页 | 7.44 MB | 3 月前3
 Julia 1.12.0 Beta4containing the resulting values: julia> map(round, [1.2, 3.5, 1.7]) 3-element Vector{Float64}: 1.0 4.0 2.0 This is fine if a named function effecting the transform already exists to pass as the first vectors have different length). julia> f(x, y) = 3x + 4y; julia> A = [1.0, 2.0, 3.0]; julia> B = [4.0, 5.0, 6.0]; julia> f.(pi, A) 3-element Vector{Float64}: 13.42477796076938 17.42477796076938 21 operation, and assignment in an expression into the "dotted" version. julia> Y = [1.0, 2.0, 3.0, 4.0];CHAPTER 9. FUNCTIONS 93 julia> X = similar(Y); # pre-allocate output array julia> @. X = sin(cos(Y))0 码力 | 2057 页 | 7.44 MB | 3 月前3 Julia 1.12.0 Beta4containing the resulting values: julia> map(round, [1.2, 3.5, 1.7]) 3-element Vector{Float64}: 1.0 4.0 2.0 This is fine if a named function effecting the transform already exists to pass as the first vectors have different length). julia> f(x, y) = 3x + 4y; julia> A = [1.0, 2.0, 3.0]; julia> B = [4.0, 5.0, 6.0]; julia> f.(pi, A) 3-element Vector{Float64}: 13.42477796076938 17.42477796076938 21 operation, and assignment in an expression into the "dotted" version. julia> Y = [1.0, 2.0, 3.0, 4.0];CHAPTER 9. FUNCTIONS 93 julia> X = similar(Y); # pre-allocate output array julia> @. X = sin(cos(Y))0 码力 | 2057 页 | 7.44 MB | 3 月前3
 Julia 1.12.0 Beta3containing the resulting values: julia> map(round, [1.2, 3.5, 1.7]) 3-element Vector{Float64}: 1.0 4.0 2.0 This is fine if a named function effecting the transform already exists to pass as the first vectors have different length). julia> f(x, y) = 3x + 4y; julia> A = [1.0, 2.0, 3.0]; julia> B = [4.0, 5.0, 6.0]; julia> f.(pi, A) 3-element Vector{Float64}: 13.42477796076938 17.42477796076938 21 operation, and assignment in an expression into the "dotted" version. julia> Y = [1.0, 2.0, 3.0, 4.0];CHAPTER 9. FUNCTIONS 93 julia> X = similar(Y); # pre-allocate output array julia> @. X = sin(cos(Y))0 码力 | 2057 页 | 7.44 MB | 3 月前3 Julia 1.12.0 Beta3containing the resulting values: julia> map(round, [1.2, 3.5, 1.7]) 3-element Vector{Float64}: 1.0 4.0 2.0 This is fine if a named function effecting the transform already exists to pass as the first vectors have different length). julia> f(x, y) = 3x + 4y; julia> A = [1.0, 2.0, 3.0]; julia> B = [4.0, 5.0, 6.0]; julia> f.(pi, A) 3-element Vector{Float64}: 13.42477796076938 17.42477796076938 21 operation, and assignment in an expression into the "dotted" version. julia> Y = [1.0, 2.0, 3.0, 4.0];CHAPTER 9. FUNCTIONS 93 julia> X = similar(Y); # pre-allocate output array julia> @. X = sin(cos(Y))0 码力 | 2057 页 | 7.44 MB | 3 月前3
 julia 1.12.0 beta1containing the resulting values: julia> map(round, [1.2, 3.5, 1.7]) 3-element Vector{Float64}: 1.0 4.0 2.0 This is fine if a named function effecting the transform already exists to pass as the first vectors have different length). julia> f(x, y) = 3x + 4y; julia> A = [1.0, 2.0, 3.0]; julia> B = [4.0, 5.0, 6.0]; julia> f.(pi, A) 3-element Vector{Float64}: 13.42477796076938 17.42477796076938 21 operation, and assignment in an expression into the "dotted" version. julia> Y = [1.0, 2.0, 3.0, 4.0];CHAPTER 9. FUNCTIONS 93 julia> X = similar(Y); # pre-allocate output array julia> @. X = sin(cos(Y))0 码力 | 2047 页 | 7.41 MB | 3 月前3 julia 1.12.0 beta1containing the resulting values: julia> map(round, [1.2, 3.5, 1.7]) 3-element Vector{Float64}: 1.0 4.0 2.0 This is fine if a named function effecting the transform already exists to pass as the first vectors have different length). julia> f(x, y) = 3x + 4y; julia> A = [1.0, 2.0, 3.0]; julia> B = [4.0, 5.0, 6.0]; julia> f.(pi, A) 3-element Vector{Float64}: 13.42477796076938 17.42477796076938 21 operation, and assignment in an expression into the "dotted" version. julia> Y = [1.0, 2.0, 3.0, 4.0];CHAPTER 9. FUNCTIONS 93 julia> X = similar(Y); # pre-allocate output array julia> @. X = sin(cos(Y))0 码力 | 2047 页 | 7.41 MB | 3 月前3
共 87 条
- 1
- 2
- 3
- 4
- 5
- 6
- 9













