• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 2 out of 10 pages
Summary

SAMENVATTING ModSim |Basisconcepten Julia

Document preview thumbnail
Preview 2 out of 10 pages

SAMENVATTING Julia basisconcepten. Legt de synthax en het gebruik van Julia uit en de basis om aan de slag te gaan met de Julia programmeertaal in Pluto. Als uitbreiding op de curus en practicum samenvatting van ModSim, gegeven door Prof. Ir. Michiel Stock in de 3de Bachelor Bio-Ingenieurswetencahppen aan de UGent. Practicum en cursus zijn ook beschikbaar op mijn profiel of alle drie samen in bundel. Stuur gerust een bericht indien je vragen hebt.

Content preview

Modelleren en Simuleren Biosystemen|BASISCONCEPTEN
Gegeven door Prof. Michiel Stock



-------------------- Algemene info Julia ------------------------

Opstarten Pluto

1. Check workingdirectory via pwd()
2. cd(raw".\OneDrive - UGent\Universiteit\3de bachelor\Semester 2\Modelleren en
simuleren van modelsystemen\ModSim practica")
3. using Pluto; Pluto.run()



Package mode openen pkg> ] #package openen pkg> add Plots
Prompt modus openen julia> backspace #package gebruiken julia> using Plots



Basic Julia syntax

▪ Operators
o Basis +,-,*,/,%
o Macht ^2
o Vierkanswortel ^0.5

▪ Variabelen toekennen
o Var = a
o julia> Var → print a
o Variabele naam kan met underscores maar mag niet met nummers starten

▪ Data types
o Checken via typeof(Var)




o Omzetten data types
▪ Integer → Flo Float64(x) 6 → 6.0
▪ Float → Int Int64(x) 6.0 → 6 (niet 6.4!)
▪ Int/Flo → String string(x) 6.3 → “6.3”
o String = geordende serie van karakters

, ▪ Arrays en indexering
o mijn_lijst = [10,20,”team”]
o mijn_lijst[1] → 10 !index begint dus bij 1 in julia  python



▪ Dubbele dubbelpunt :: (type asserties)
o Dwingt af welk type een variabele moet zijn
o Bv functie (x::Int64) → functie aanvaard alleen gehele getallen



▪ Symbolen toevoegen
o Dubbel punt gebruiken : voor een woord (zoals :S of :I)



▪ Underscore _
o In Julia (en dus Pluto) mag je een underscore _ in getallen gebruiken om
ze leesbaarder te maken bv 1_000_000 (miljoen) = 1000000



▪ Komma
o In Julia wordt punt . gebruikt als komma, terwijl een ‘,’ gebruikt wordt
om stukken te scheiden



▪ Pair operator =>
o => creëert een pair, koppelt sleutel (links) aan een waarde (rechts)
o Bv :S => 9_000 (sleutel :S (symbool S) krijgt de waarde 9000)




Werking Pluto

▪ Pluto heeft geen ingebouwde terminal zoals in VS code
▪ Bibliotheken niet nodig → ingebouwde packet oproepen via using packet
▪ Bewerking op variabele → nieuwe variabele aan toekennen x = 10 | y = x + 5
▪ Logica ‘cellen’
o Elke ‘cel’ = onafhankelijk blokje code maar allemaal samen netwerk
o Variabelen worden doorgepakt naar andere cellen (bv x = 10 in cel 2)
o Cel 1: moeilijke berekening, cel 2: grafiek tekenen hiervan
→ aanpassing in visualisatie hoef je alleen cel 2 aan te passen en de
grafiek up te daten ipv alles opnieuw te laten berekenen

Document information

Study
Uploaded on
April 14, 2026
Number of pages
10
Written in
2025/2026
Type
Summary
$4.60

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
BioEngineer
4.2
(5)
Sold
112
Followers
9
Items
90
Last sold
1 week ago




Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions