Fix typos in README and exercises files

This commit is contained in:
Pietro Monticone 2022-12-05 18:27:43 +01:00
parent e41a34a37f
commit f418a6e6ee
6 changed files with 8 additions and 8 deletions

View File

@ -12,7 +12,7 @@ Extras:
* in the `/lectures` folder for each book chapter you can find a Jupyter
Notebook file with code from this chapter (note that the code is slightly
adjusted in comparison to code contained in .jl files in the root folder
to accomodate it for running in Jupyter Notebook).
to accommodate it for running in Jupyter Notebook).
## Setting up your environment

View File

@ -19,7 +19,7 @@ purpose, require using more functionalities of Julia ecosystem that is covered
in the book. This is meant to teach you how to use help and documentation,
as this is a very important skill to master.
The files containing exercises have a naming convention `execricesDD.md`, where
The files containing exercises have a naming convention `exercisesDD.md`, where
`DD` is book chapter number for which the exercises were prepared.
All the exercises should be possible to solve using project environment setting

View File

@ -64,7 +64,7 @@ and the error accumulates when we do addition multiple times.
than rational 1/7 by increasing the precision of computations using the `big`
function:
```
julia> big(1/7) # convert Floa64 to high-precision float
julia> big(1/7) # convert Float64 to high-precision float
0.142857142857142849212692681248881854116916656494140625
julia> 1/big(7) # construct high-precision float directly
@ -187,7 +187,7 @@ Note the differences in the code:
* if there are `0` or `1` element in the collection the function does not do
anything (depending on the context we might want to throw an error instead)
* in `x[begin], x[end] = x[end], x[begin]` we perform two assignments at the
same time to avoid having to use a temporaty variable `f` (this operation
same time to avoid having to use a temporary variable `f` (this operation
is technically called tuple destructuring; we discuss it in later chapters of
the book)

View File

@ -302,7 +302,7 @@ julia> for i in 1:40
20 18.100 μs (0 allocations: 0 bytes)
```
Notice that execution time for number `n` is roughly sum of ececution times
Notice that execution time for number `n` is roughly sum of execution times
for numbers `n-1` and `n-2`.
</details>

View File

@ -9,11 +9,11 @@
### Exercise 1
Random.org provides a service that returns random numbers. One of the ways
how you can use it is by sending HTTP GET reguests. Here is an example request:
how you can use it is by sending HTTP GET requests. Here is an example request:
> https://www.random.org/integers/?num=10&min=1&max=6&col=1&base=10&format=plain&rnd=new
If you want to understand all the parameters plese check their meaning
If you want to understand all the parameters please check their meaning
[here](https://www.random.org/clients/http/).
For us it is enough that this request generates 10 random integers in the range

View File

@ -385,7 +385,7 @@ plot([bar(string.(g.n), g.mv;
yerror=(g.mv - g.lo95, g.hi95-g.mv)) for g in gdf]...)
```
As expected error bandwidth gets smaller as `k` encreases.
As expected error bandwidth gets smaller as `k` increases.
Note that as `n` increases the estimated value tends to `1-exp(-1)`.
</details>