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.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.12.0 RC1\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 码力 | 2057 页 | 7.44 MB | 3 月前3
Julia 1.12.0 Beta4\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 码力 | 2057 页 | 7.44 MB | 3 月前3
Julia 1.12.0 Beta3\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 码力 | 2057 页 | 7.44 MB | 3 月前3
julia 1.12.0 beta1\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 码力 | 2047 页 | 7.41 MB | 3 月前3
共 16 条
- 1
- 2













