Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Φ = (√5 + 1) / 2
- ϕ = (√5 - 1) / 2
- τ = 2π
- Σ = sum
- Π = prod
- ans = [1 / ϕ, 1 / Φ]
- (1 / ϕ ≉ Φ, " ", 1 / Φ ≠ ϕ)
- spaghetti(λ::Function, args::Array{Int64}) = reduce(λ, args)
- spaghoot(spaghet) = println(spaghet)
- # spaghetti(+, (2 for i ∈ 0:24)...)
- const bloo = [1:1000000;]
- @time reduce(*, bloo::Array{Int64})
- @time spaghetti(*, bloo::Array{Int64})
- cd("Julia\\")
- @time begin
- F = open("hello.txt")
- read_uppercase(F::IOStream) = uppercase.(readlines(F))
- read_uppercase(F)
- end
- @time time_rand(x) = @time rand(x)
- time_rand(1)
- f(x::Int64) = 3x^2 + 4x + 7x^3
- @time f(1)
- @time f(2)
- @time f.(bloo::Array{Int64})
- array = [i * j for i ∈ 1:5, j ∈ 1:5]
- array[array .≡ 3] .= 30
- array
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement