1
0
Fork 0
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:
Mo8it 2022-04-01 05:35:04 +02:00
parent e5cb1dc933
commit d2a4b883ee
2 changed files with 7 additions and 7 deletions

View file

@ -186,7 +186,7 @@ end
big_vec2d = BetterVec2d(factorial(big(1000)), big(1)) big_vec2d = BetterVec2d(factorial(big(1000)), big(1))
# ╔═╡ f91b0c58-bc44-414a-b357-145d8c4339d2 # ╔═╡ f91b0c58-bc44-414a-b357-145d8c4339d2
# You see that a concrete type was choosen! # You see that a concrete type was chosen!
typeof(big_vec2d) typeof(big_vec2d)
# ╔═╡ 169de33e-cff8-4419-be18-0f487c185ad7 # ╔═╡ 169de33e-cff8-4419-be18-0f487c185ad7
@ -243,7 +243,7 @@ end
# ╔═╡ d635a63b-44d9-4bfc-a873-ef537cdbdb09 # ╔═╡ d635a63b-44d9-4bfc-a873-ef537cdbdb09
md""" md"""
## Structs from abstract types ## Structs from abstract types
To use the features of mutliple dispatch, define an abstract type and derive structs from it. To use the features of multiple dispatch, define an abstract type and derive structs from it.
""" """
# ╔═╡ 10c380fd-80e6-4cb7-b50e-1a7998ec00c5 # ╔═╡ 10c380fd-80e6-4cb7-b50e-1a7998ec00c5
@ -350,7 +350,7 @@ mutable struct BiologyStudent<:Student
end end
# ╔═╡ 3063d330-c411-431e-9e7a-eb3f5cd3ee7b # ╔═╡ 3063d330-c411-431e-9e7a-eb3f5cd3ee7b
# This will not work because the default constructor is overritten! # This will not work because the default constructor is overwritten!
# BiologyStudent("Kate", "Swimming") # BiologyStudent("Kate", "Swimming")
# ╔═╡ 9e621eb5-a163-4a7a-abd5-85bdf9469692 # ╔═╡ 9e621eb5-a163-4a7a-abd5-85bdf9469692
@ -378,7 +378,7 @@ It is useful if you want to enforce checking fields before construction.
# ╔═╡ c24c04e4-b131-11ec-2c1b-7de12fe0c324 # ╔═╡ c24c04e4-b131-11ec-2c1b-7de12fe0c324
md""" md"""
# Ecosystem # Ecosystem
In this section, some interessting Julia packages will be presented briefly. If you want to learn more about them, check out their documentation! Just search for the package name and take a look at the Github page or the documentation page. In this section, some interesting Julia packages will be presented briefly. If you want to learn more about them, check out their documentation! Just search for the package name and take a look at the Github page or the documentation page.
""" """
# ╔═╡ 7e75da58-f110-41cb-ab19-79376370965f # ╔═╡ 7e75da58-f110-41cb-ab19-79376370965f
@ -410,7 +410,7 @@ md"""
## `Makie` ## `Makie`
Makie is a plotting package that does use the GPU for plotting. Depending on what you are doing, it might be more powerful than `Plots.jl`. Makie is a plotting package that does use the GPU for plotting. Depending on what you are doing, it might be more powerful than `Plots.jl`.
Makie has more than one backend. The most important ones are `GLMakie` and `CairoMakie`. Use `CairoMakie` for puplications and `GLMakie` especially for animations. Makie has more than one backend. The most important ones are `GLMakie` and `CairoMakie`. Use `CairoMakie` for publications and `GLMakie` especially for animations.
""" """
# ╔═╡ 6b417e5d-01c2-4b06-9708-62c422a6b64b # ╔═╡ 6b417e5d-01c2-4b06-9708-62c422a6b64b

View file

@ -117,7 +117,7 @@ length_squared(v)
# ╔═╡ 4a69ccd4-576c-4d31-b75b-8caa9c7159fa # ╔═╡ 4a69ccd4-576c-4d31-b75b-8caa9c7159fa
md""" md"""
# Chess matrices # Chess matrices
Implement a function that takes an integer `n` as an arguement and returns a `n × n` matrix with a chess pattern using `1` and `0`. Implement a function that takes an integer `n` as an argument and returns a `n × n` matrix with a chess pattern using `1` and `0`.
The matrix elements have to be integers. The matrix elements have to be integers.
@ -129,7 +129,7 @@ $n = 3 \rightarrow \begin{pmatrix}
0 & 1 & 0 \\ 0 & 1 & 0 \\
\end{pmatrix}$ \end{pmatrix}$
If you want to have more fun, implement the function again, but this time with the emojies ⬜️ and ⬛️ instead of 0 and 1 😹 If you want to have more fun, implement the function again, but this time with the emojis ⬜️ and ⬛️ instead of 0 and 1 😹
""" """
# ╔═╡ 070e9dc2-884c-4a3b-873a-9a9ebf40c7c6 # ╔═╡ 070e9dc2-884c-4a3b-873a-9a9ebf40c7c6