From 5278c18cdd0dc87aa1e0eeb9ba3ec7d1590f2771 Mon Sep 17 00:00:00 2001 From: Mo8it Date: Tue, 29 Mar 2022 06:33:25 +0200 Subject: [PATCH] Fix typos --- Day_1/Day_1.jl | 10 +++++----- Day_2/Day_2.jl | 8 ++++---- Day_2/Tasks_day_2.jl | 4 ++-- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/Day_1/Day_1.jl b/Day_1/Day_1.jl index 9f181bf..d6f215d 100644 --- a/Day_1/Day_1.jl +++ b/Day_1/Day_1.jl @@ -248,7 +248,7 @@ typeof(meaning_of_life) # ╔═╡ 5e45b854-c173-452b-b62b-54037a3780fd md""" -## String operatorions +## String operations """ # ╔═╡ 0596fe87-4201-476e-8e11-618c621c5474 @@ -265,7 +265,7 @@ new_to_julia = "Hi, I am new to Julia!" contains(new_to_julia, "Hi") # ╔═╡ 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, ",") # ╔═╡ a96f3ae9-12df-4df8-85da-09b9b1e47de1 @@ -441,7 +441,7 @@ calc_and_print_R(U2, I2) # ╔═╡ 62cdf927-4e2b-40bb-be2d-eb32e0789548 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 @@ -464,9 +464,9 @@ complex_function(1, 2, 3, 4) md""" 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 diff --git a/Day_2/Day_2.jl b/Day_2/Day_2.jl index 0e12e1c..c48e076 100644 --- a/Day_2/Day_2.jl +++ b/Day_2/Day_2.jl @@ -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). -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 @@ -113,7 +113,7 @@ You can also make all the arguments optional by providing default values for eve md""" 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 @@ -297,7 +297,7 @@ md""" # I/O 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 @@ -422,7 +422,7 @@ plot( label="sin", title="Simple example", color="red", # Change color - linestyle=:dash, # Change linestyle + linestyle=:dash, # Change line style ) # ╔═╡ 7cc3b76d-6388-4499-8647-9d1fccc6a8c4 diff --git a/Day_2/Tasks_day_2.jl b/Day_2/Tasks_day_2.jl index 7b03d75..f559e99 100644 --- a/Day_2/Tasks_day_2.jl +++ b/Day_2/Tasks_day_2.jl @@ -47,7 +47,7 @@ md""" # DNA analysis 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 @@ -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)^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]$. """