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-03-28 09:21:30 +02:00
parent 414f6ccf18
commit 81f5f3cd40

View file

@ -269,7 +269,7 @@ contains(new_to_julia, "Hi")
split(new_to_julia, ",") split(new_to_julia, ",")
# ╔═╡ a96f3ae9-12df-4df8-85da-09b9b1e47de1 # ╔═╡ a96f3ae9-12df-4df8-85da-09b9b1e47de1
# Join a list of strings with a provided delimeter and last delimeter # Join a list of strings with a provided delimiter and last delimiter
# Some of the used arguments are optional, see the docs 📚️ # Some of the used arguments are optional, see the docs 📚️
# Lists are actually called vectors in Julia. More about this later! # Lists are actually called vectors in Julia. More about this later!
join(["Apple", "Banana", "Orange", "Lemon"], ", ", " and ") join(["Apple", "Banana", "Orange", "Lemon"], ", ", " and ")
@ -493,7 +493,7 @@ All types showed in the output of the above cell except `Int64` are abstract.
This means that you can not have a variable with an abstract type. This means that you can not have a variable with an abstract type.
You can only derive from an abstract type, but more about this when discussing structs and mutliple dispatch 😉 You can only derive from an abstract type, but more about this when discussing structs and multiple dispatch 😉
`Any` is the abstract type of everything. `Any` is the abstract type of everything.
""" """
@ -532,7 +532,7 @@ supertypes(Float64)
# ╔═╡ 608d4433-6e68-4f95-8581-437234b58e87 # ╔═╡ 608d4433-6e68-4f95-8581-437234b58e87
md""" md"""
## Convertion ## Conversion
You can convert some types to others if it is possible. You can convert some types to others if it is possible.
""" """
@ -555,7 +555,7 @@ md"""
""" """
# ╔═╡ 1e954726-254e-41bb-a62f-17bdc9884bee # ╔═╡ 1e954726-254e-41bb-a62f-17bdc9884bee
# We have to tell Julia explicitely what to do when converting a float with non zero digits after the decimal point. # We have to tell Julia explicitly what to do when converting a float with non zero digits after the decimal point.
round(Int64, 3.2) round(Int64, 3.2)
# ╔═╡ d74f6c46-f5a8-4720-bcaf-936f1508efda # ╔═╡ d74f6c46-f5a8-4720-bcaf-936f1508efda
@ -576,7 +576,7 @@ md"""
You might be asking your self, why even bother learning a programming language when you can just use a calculator 🤨 You might be asking your self, why even bother learning a programming language when you can just use a calculator 🤨
One very improtant aspect of computers is their ability to do a computation for many times, without getting tired or missing a step 😴 One very important aspect of computers is their ability to do a computation for many times, without getting tired or missing a step 😴
To use this ability, programming languages provide `for` and `while` loops. To use this ability, programming languages provide `for` and `while` loops.
@ -622,7 +622,7 @@ measured_I = [0.30, 0.25, 0.13, 0.22, 0.15, 0.75] .* u"mA" .± 0.05u"mA"
# ╔═╡ b70a48ca-362c-40d6-b703-2553a0b01275 # ╔═╡ b70a48ca-362c-40d6-b703-2553a0b01275
for (u, i) in zip(measured_U, measured_I) for (u, i) in zip(measured_U, measured_I)
calc_and_print_R(u, i) calc_and_print_R(u, i)
println("---") # Seperate output println("---") # Separate output
end end
# ╔═╡ c0b32101-5863-4c22-8ee5-8e29abe0da39 # ╔═╡ c0b32101-5863-4c22-8ee5-8e29abe0da39
@ -1093,7 +1093,7 @@ To see what a range contains, you can convert it to a vector by *collecting* its
""" """
# ╔═╡ c24f0bf2-0054-49f2-bffc-8b3e3ff6409b # ╔═╡ c24f0bf2-0054-49f2-bffc-8b3e3ff6409b
# Does not show the elements explicitely # Does not show the elements explicitly
1:4 1:4
# ╔═╡ 800d4999-d7d7-4818-95e7-d93027f23c53 # ╔═╡ 800d4999-d7d7-4818-95e7-d93027f23c53