mirror of
https://gitlab.rlp.net/mobitar/julia_course.git
synced 2024-11-16 13:28:10 +00:00
Fix typos
This commit is contained in:
parent
05394cbd4d
commit
5278c18cdd
3 changed files with 11 additions and 11 deletions
|
@ -248,7 +248,7 @@ typeof(meaning_of_life)
|
||||||
|
|
||||||
# ╔═╡ 5e45b854-c173-452b-b62b-54037a3780fd
|
# ╔═╡ 5e45b854-c173-452b-b62b-54037a3780fd
|
||||||
md"""
|
md"""
|
||||||
## String operatorions
|
## String operations
|
||||||
"""
|
"""
|
||||||
|
|
||||||
# ╔═╡ 0596fe87-4201-476e-8e11-618c621c5474
|
# ╔═╡ 0596fe87-4201-476e-8e11-618c621c5474
|
||||||
|
@ -265,7 +265,7 @@ new_to_julia = "Hi, I am new to Julia!"
|
||||||
contains(new_to_julia, "Hi")
|
contains(new_to_julia, "Hi")
|
||||||
|
|
||||||
# ╔═╡ 943da836-384d-4774-aaf4-54c27feb53d8
|
# ╔═╡ 943da836-384d-4774-aaf4-54c27feb53d8
|
||||||
# Split on occurrences of the provided delimeneter (comma here)
|
# Split on occurrences of the provided delimiter (comma here)
|
||||||
split(new_to_julia, ",")
|
split(new_to_julia, ",")
|
||||||
|
|
||||||
# ╔═╡ a96f3ae9-12df-4df8-85da-09b9b1e47de1
|
# ╔═╡ a96f3ae9-12df-4df8-85da-09b9b1e47de1
|
||||||
|
@ -441,7 +441,7 @@ calc_and_print_R(U2, I2)
|
||||||
|
|
||||||
# ╔═╡ 62cdf927-4e2b-40bb-be2d-eb32e0789548
|
# ╔═╡ 62cdf927-4e2b-40bb-be2d-eb32e0789548
|
||||||
md"""
|
md"""
|
||||||
Now, everytime you want to calculate a resistance, you just use this function and it calculates and outputs for you 😃
|
Now, every time you want to calculate a resistance, you just use this function and it calculates and outputs for you 😃
|
||||||
"""
|
"""
|
||||||
|
|
||||||
# ╔═╡ 9847a224-701a-489a-b125-95158aa805d4
|
# ╔═╡ 9847a224-701a-489a-b125-95158aa805d4
|
||||||
|
@ -464,9 +464,9 @@ complex_function(1, 2, 3, 4)
|
||||||
md"""
|
md"""
|
||||||
Why can't we access the variable that we did define and use in the function? 😢
|
Why can't we access the variable that we did define and use in the function? 😢
|
||||||
|
|
||||||
It is because of the concept of *scopes*. The variable result is only defined inside the function and it is only accecable inside of this function (in the scope of the function), not outside it!
|
It is because of the concept of *scopes*. The variable result is only defined inside the function and it is only accessible inside of this function (in the scope of the function), not outside it!
|
||||||
|
|
||||||
`result` is called an *internal* variable. When you define a variable outside a function, it is called a *global* variable and is accecable everywhere.
|
`result` is called an *internal* variable. When you define a variable outside a function, it is called a *global* variable and is accessible everywhere.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
# ╔═╡ a6d882a0-c80e-4acf-b05b-c0ae120d698d
|
# ╔═╡ a6d882a0-c80e-4acf-b05b-c0ae120d698d
|
||||||
|
|
|
@ -53,7 +53,7 @@ What we did use until now are *positional arguments*.
|
||||||
|
|
||||||
You can declare *keyword arguments* in addition to positional arguments. Keyword arguments have to be named while calling a function (see below cells).
|
You can declare *keyword arguments* in addition to positional arguments. Keyword arguments have to be named while calling a function (see below cells).
|
||||||
|
|
||||||
Keyword arguments are declared after positional arguments and seperated from positional arguments with a semicolon `;`.
|
Keyword arguments are declared after positional arguments and separated from positional arguments with a semicolon `;`.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
# ╔═╡ ae5ebe62-37bd-423d-a102-fbbec8de8e0f
|
# ╔═╡ ae5ebe62-37bd-423d-a102-fbbec8de8e0f
|
||||||
|
@ -113,7 +113,7 @@ You can also make all the arguments optional by providing default values for eve
|
||||||
md"""
|
md"""
|
||||||
Optional **positional** arguments have to be specified **at the end** (for calling the function).
|
Optional **positional** arguments have to be specified **at the end** (for calling the function).
|
||||||
|
|
||||||
Optoinal **keyword** arguments don't have to be specified at the end because the order of specifying keyword arguments while calling a function is not important.
|
Optional **keyword** arguments don't have to be specified at the end because the order of specifying keyword arguments while calling a function is not important.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
# ╔═╡ b5272b80-b013-460c-ae78-1b9a1a774c5c
|
# ╔═╡ b5272b80-b013-460c-ae78-1b9a1a774c5c
|
||||||
|
@ -297,7 +297,7 @@ md"""
|
||||||
# I/O
|
# I/O
|
||||||
I/O stand for input/output. In this section, we will learn the basics about reading and writing files.
|
I/O stand for input/output. In this section, we will learn the basics about reading and writing files.
|
||||||
|
|
||||||
I/O knowledge will especially help us to read some files containing data to analyse.
|
I/O knowledge will especially help us to read some files containing data to analyze.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
# ╔═╡ 274342cb-19a9-4e71-a23e-7c7da18a8022
|
# ╔═╡ 274342cb-19a9-4e71-a23e-7c7da18a8022
|
||||||
|
@ -422,7 +422,7 @@ plot(
|
||||||
label="sin",
|
label="sin",
|
||||||
title="Simple example",
|
title="Simple example",
|
||||||
color="red", # Change color
|
color="red", # Change color
|
||||||
linestyle=:dash, # Change linestyle
|
linestyle=:dash, # Change line style
|
||||||
)
|
)
|
||||||
|
|
||||||
# ╔═╡ 7cc3b76d-6388-4499-8647-9d1fccc6a8c4
|
# ╔═╡ 7cc3b76d-6388-4499-8647-9d1fccc6a8c4
|
||||||
|
|
|
@ -47,7 +47,7 @@ md"""
|
||||||
# DNA analysis
|
# DNA analysis
|
||||||
The file `resources/DNA.txt` has only one line.
|
The file `resources/DNA.txt` has only one line.
|
||||||
|
|
||||||
Read the file and count the nucleotides 'A', 'T', 'G' and 'C' in this file. Calculate the occurancy percentage for each nucleotide.
|
Read the file and count the nucleotides 'A', 'T', 'G' and 'C' in this file. Calculate the occurrence percentage for each nucleotide.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
# ╔═╡ 0bde137a-bc78-4204-971a-999c66eada47
|
# ╔═╡ 0bde137a-bc78-4204-971a-999c66eada47
|
||||||
|
@ -65,7 +65,7 @@ Plot the following functions in one figure with $x \in [-4π, 4π]$
|
||||||
- $a e^{b x - c} + d$
|
- $a e^{b x - c} + d$
|
||||||
- $a e^{(b x - c)^2} + d$
|
- $a e^{(b x - c)^2} + d$
|
||||||
|
|
||||||
Make sure you use unique linestyles, colors and labels.
|
Make sure you use unique line styles, colors and labels.
|
||||||
|
|
||||||
First, implement 4 sliders for the variables `a`, `b`, `c` and `d` in the interval $[-1, 1]$.
|
First, implement 4 sliders for the variables `a`, `b`, `c` and `d` in the interval $[-1, 1]$.
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in a new issue