Julia

1)Paket yükleme-Temel Programda: using Pkg; Pkg.add("paketadi")

2)Yükleme tamamlandıktan sonra : using paketadi

  • Ctrl+Shift+P=>açılan pencere "terminal:temizle"ayarlar kısmına Ctrl+Space atanır. Ctrl+Space herçalışmadan önce terminal temizlenir.
  • @__DIR__ =>dosyanın konumunu gösterir.

  • Ctrl+K+C  => Seçilen kod inaktif
  • Ctrl+K+U => Seçilen kod aktif
  • Toplu seçim+tab=>ileri öteleme
  • Toplu seçim+shift+tab=>geri öteleme

  • Range   range(start, stop, length) or    range(start, stop, step)
  • Fonksiyon grafiği

using Plots

x = range(0, 10, length=100)

y3 = @. sin(x)^2 - 1/2   # equivalent to y3 = sin.(x).^2 .- 1/2

y2 = @. cos(x)^2 - 1/2

plot(x, y3)

plot!(x,y2)

 

 

  • scatter plot

using Plots

plot([X[:,1]],[X[:,4]], seriestype = :scatter, title = "My Scatter Plot")

plot!([X[:,1]],[beta[1].+beta[4]*X[:,4]],seriestype = :scatter)

 

  • # Fonksiyon tanımı

    function ft(x)

        return -x*cos(x)

    end

     

    # x değerlerini oluşturma

    x = range(-5, 5, length=100)

     

    # ft(x) değerlerini hesaplama

    y = ft.(x)  # Apply ft element-wise to the array x

     

    # Çizim

    plot(x, y, xlabel="x", ylabel="ft(x)", title="ft(x) Plot", legend=false)

  • [ifade(x) for x in basla:adim:son]
  • Örnek:[x+5^2 for x in 1:5:25]
  • Data matrisini görebilmek için  #show(IOContext(stdout, :limit=>false), MIME"text/plain"(), degisken)

Ctrl+S yapmadan program çalıştırma

a=[1 2 3]

b=[1,2,3]

c=[1;2;3]

d=(1,2,3)

typeof(a):Matrix{Int64} (alias for Array{Int64, 2})

typeof(b):Vector{Int64} (alias for Array{Int64, 1})

typeof(c):Vector{Int64} (alias for Array{Int64, 1})

typeof(d):Tuple{Int64, Int64, Int64}

  • Kurulum+Menü Tanıma
  • Temel Aritmetik İşlemler +Veri Tipleri
  • Standart Fonksiyonlar +Grafikleri
  • Veri Yapıları (Liste, Demet, Küme)
  • Liste İşlemleri
  • Matematiksel Fonksiyon Tanımlama
  • Koşullu ifadeler +Döngüler
  • Basit Programlama
  • Standart Paketler ve Uygulamaları
  • Fonksiyonel Programlama