julia 1.10.10the sqrt and + functions can be composed like this:CHAPTER 8. FUNCTIONS 85 julia> (sqrt ∘ +)(3, 6) 3.0 This adds the numbers first, then finds the square root of the result. The next example composes 3.7416573867739413 julia> 1:3 .|> x -> x^2 |> sum |> sqrt 3-element Vector{Float64}: 1.0 2.0 3.0CHAPTER 8. FUNCTIONS 86 8.18 Dot Syntax for Vectorizing Functions In technical-computing languages can be applied to all elements in the vector A like so: julia> A = [1.0, 2.0, 3.0] 3-element Vector{Float64}: 1.0 2.0 3.0 julia> sin.(A) 3-element Vector{Float64}: 0.8414709848078965 0.90929742682568170 码力 | 1692 页 | 6.34 MB | 3 月前3
Julia 1.10.9the sqrt and + functions can be composed like this:CHAPTER 8. FUNCTIONS 85 julia> (sqrt ∘ +)(3, 6) 3.0 This adds the numbers first, then finds the square root of the result. The next example composes 3.7416573867739413 julia> 1:3 .|> x -> x^2 |> sum |> sqrt 3-element Vector{Float64}: 1.0 2.0 3.0CHAPTER 8. FUNCTIONS 86 8.18 Dot Syntax for Vectorizing Functions In technical-computing languages can be applied to all elements in the vector A like so: julia> A = [1.0, 2.0, 3.0] 3-element Vector{Float64}: 1.0 2.0 3.0 julia> sin.(A) 3-element Vector{Float64}: 0.8414709848078965 0.90929742682568170 码力 | 1692 页 | 6.34 MB | 3 月前3
Julia 1.11.4\circ. For example, the sqrt and + functions can be composed like this: julia> (sqrt ∘ +)(3, 6) 3.0 This adds the numbers first, then finds the square root of the result. The next example composes 3.7416573867739413 julia> 1:3 .|> x -> x^2 |> sum |> sqrt 3-element Vector{Float64}: 1.0 2.0 3.0 9.18 Dot Syntax for Vectorizing Functions In technical-computing languages, it is common to have can be applied to all elements in the vector A like so: julia> A = [1.0, 2.0, 3.0] 3-element Vector{Float64}: 1.0 2.0 3.0 julia> sin.(A) 3-element Vector{Float64}: 0.8414709848078965 0.9092974268256817 0 码力 | 2007 页 | 6.73 MB | 3 月前3
Julia 1.11.5 Documentation\circ. For example, the sqrt and + functions can be composed like this: julia> (sqrt ∘ +)(3, 6) 3.0 This adds the numbers first, then finds the square root of the result. The next example composes 3.7416573867739413 julia> 1:3 .|> x -> x^2 |> sum |> sqrt 3-element Vector{Float64}: 1.0 2.0 3.0 9.18 Dot Syntax for Vectorizing Functions In technical-computing languages, it is common to have can be applied to all elements in the vector A like so: julia> A = [1.0, 2.0, 3.0] 3-element Vector{Float64}: 1.0 2.0 3.0 julia> sin.(A) 3-element Vector{Float64}: 0.8414709848078965 0.9092974268256817 0 码力 | 2007 页 | 6.73 MB | 3 月前3
Julia 1.11.6 Release Notes\circ. For example, the sqrt and + functions can be composed like this: julia> (sqrt ∘ +)(3, 6) 3.0 This adds the numbers first, then finds the square root of the result. The next example composes 3.7416573867739413 julia> 1:3 .|> x -> x^2 |> sum |> sqrt 3-element Vector{Float64}: 1.0 2.0 3.0 9.18 Dot Syntax for Vectorizing Functions In technical-computing languages, it is common to have can be applied to all elements in the vector A like so: julia> A = [1.0, 2.0, 3.0] 3-element Vector{Float64}: 1.0 2.0 3.0 julia> sin.(A) 3-element Vector{Float64}: 0.8414709848078965 0.9092974268256817 0 码力 | 2007 页 | 6.73 MB | 3 月前3
Julia 1.8.0 DEV Documentation\circ. For example, the sqrt and + functions can be composed like this: julia> (sqrt ∘ +)(3, 6) 3.0 CHAPTER 8. FUNCTIONS 75 This adds the numbers first, then finds the square root of the result. The 3.7416573867739413 julia> 1:3 .|> x -> x^2 |> sum |> sqrt 3-element Vector{Float64}: 1.0 2.0 3.0 CHAPTER 8. FUNCTIONS 76 8.18 Dot Syntax for Vectorizing Functions In technical-computing languages be applied to all elements in the vector A like so: julia> A = [1.0, 2.0, 3.0] 3-element Vector{Float64}: 1.0 2.0 3.0 julia> sin.(A) 3-element Vector{Float64}: 0.8414709848078965 0.9092974268256817 0 码力 | 1463 页 | 5.01 MB | 1 年前3
julia 1.13.0 DEV\circ. For example, the sqrt and + functions can be composed like this: julia> (sqrt ∘ +)(3, 6) 3.0 This adds the numbers first, then finds the square root of the result. The next example composes 3.7416573867739413 julia> 1:3 .|> x -> x^2 |> sum |> sqrt 3-element Vector{Float64}: 1.0 2.0 3.0 9.18 Dot Syntax for Vectorizing Functions In technical-computing languages, it is common to have can be applied to all elements in the vector A like so: julia> A = [1.0, 2.0, 3.0] 3-element Vector{Float64}: 1.0 2.0 3.0 julia> sin.(A) 3-element Vector{Float64}: 0.8414709848078965 0.9092974268256817 0 码力 | 2058 页 | 7.45 MB | 3 月前3
Julia 1.7.0 DEV Documentation\circ. For example, the sqrt and + functions can be composed like this: julia> (sqrt ∘ +)(3, 6) 3.0 This adds the numbers first, then finds the square root of the result. The next example composes be applied to all elements in the vector A like so: julia> A = [1.0, 2.0, 3.0] 3-element Vector{Float64}: 1.0 2.0 3.0 julia> sin.(A) 3-element Vector{Float64}: 0.8414709848078965 0.9092974268256817 exception if the 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 0 码力 | 1399 页 | 4.59 MB | 1 年前3
Julia v1.3.1 Documentation\circ. For example, the sqrt and + func�ons can be composed like this: julia> (sqrt +)(3, 6) 3.0 This adds the numbers first, then finds the square root of the result. The next example composes can be applied to all elements in the vector A like so: julia> A = [1.0, 2.0, 3.0] 3-element Array{Float64,1}: 1.0 2.0 3.0 julia> sin.(A) 3-element Array{Float64,1}: 0.8414709848078965 0.9092974268256817 an excep�on if the 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 Array{Float64,1}: 13.42477796076938 17 0 码力 | 1276 页 | 4.36 MB | 1 年前3
Julia v1.6.6 Documentationsqrt and + functions can be composed like this: CHAPTER 8. FUNCTIONS 71 julia> (sqrt ∘ +)(3, 6) 3.0 This adds the numbers first, then finds the square root of the result. The next example composes to all elements in the vector A like so: julia> A = [1.0, 2.0, 3.0] 3-element Vector{Float64}: 1.0 CHAPTER 8. FUNCTIONS 72 2.0 3.0 julia> sin.(A) 3-element Vector{Float64}: 0.8414709848078965 exception if the 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 170 码力 | 1324 页 | 4.54 MB | 1 年前3
共 87 条
- 1
- 2
- 3
- 4
- 5
- 6
- 9













