diff --git a/book/_config.yml b/book/_config.yml index a35f930dd19bdd675c78b61ed8d758fa45ff1b9e..5893342ed46cc0f9f4001ec655abdf4bc2f509ad 100644 --- a/book/_config.yml +++ b/book/_config.yml @@ -15,10 +15,7 @@ sphinx: html_js_files: - https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.4/require.min.js patch_config: - enabled-patches: - - scroll - - darkmode - - layout + disabled-patches: [] extra_extensions: - sphinx_inline_tabs - sphinx_grasple @@ -36,3 +33,5 @@ draft_banner: 'âš ï¸This is a draft website. The most recent published version html: use_multitoc_numbering: false + comments: + hypothesis: true diff --git a/book/fem/videos.md b/book/fem/videos.md index 41adb5a291a6de874cd1b32e4ba40c1ec0e58a67..38a9ae6166820e581f134227b27bfb82e42341d8 100644 --- a/book/fem/videos.md +++ b/book/fem/videos.md @@ -2,7 +2,7 @@ The story of the derivation of the finite element method is told once more in this section with a series of videos. -```{admonotion} MUDE exam information +```{admonition} MUDE exam information :class: tip, dropdown These videos overlap to some extent with the theory presented in the book. You do not need to be able to reproduce the 2D derivation from the third video. The fourth and fifth video complete the story of the finite element formulation for Poisson problems but go beyond what you will be expected to know at the exam. ``` diff --git a/book/fvm/exercises.md b/book/fvm/exercises.md index f69500307516bfab9a044bdc6ed882cf3df5ce6a..f4098cab7c1d94c138103e90785f9a876dc2fadc 100644 --- a/book/fvm/exercises.md +++ b/book/fvm/exercises.md @@ -11,7 +11,7 @@ Finite volume discretization for 2D advection exercise. ``` Assume that the $x$ and $y$ components of the velocity field are both equal to $c$. Formulate the FVM for the 2D case by finding the following: -1. Equation for $\phi_i^{n+1}$ for finite volume $i$, discretized with central difference (space) and forward Euler (time) schemes. +1. Equation for $\phi_i^{n+1}$ for finite volume $i$, discretized with central difference (space) and forward Euler (time) schemes (note that rather than apply central difference directly, you should apply an averaging scheme for determining values at the face(s), which will automatically result in the central difference over neighboring volumes, for this geometry). 2. Define the system of equations for all 12 volumes by writing out the matrix and vector terms. ```{admonition} Solution diff --git a/book/optimization/genetic_algorithm.md b/book/optimization/genetic_algorithm.md index 67b65d5ad410df1aeb64e2ef7ca1397ee845e857..39e6f90cf30a3ce1efb4887461eac364c7bf138b 100644 --- a/book/optimization/genetic_algorithm.md +++ b/book/optimization/genetic_algorithm.md @@ -50,7 +50,7 @@ $$ such that: $$ -\begin{cases}x_1+x_2\geq 2\\ -2x_1+2x_2\geq 1\\ x_1,x_2=0\text{ or }1 \end{cases} +\begin{cases}x_1+2x_2\geq 2\\ -2x_1+2x_2\geq 1\\ x_1,x_2=0\text{ or }1 \end{cases} $$ The evolutionary algorithm to solve an optimization problem like the one described above is described by the following scheme: diff --git a/book/optimization/integer_programming.md b/book/optimization/integer_programming.md index a029054d3ff77eea2bf7bfdfa7ed7447a9c1d112..84570665bcdc152ddc2c6df0fda4c2a75bf26a2c 100644 --- a/book/optimization/integer_programming.md +++ b/book/optimization/integer_programming.md @@ -23,7 +23,7 @@ The story is told in a video. The video has a one-to-one correspondence with th $\mathbb{N}_0$ is the set of natural numbers meaning the integer ones and it includes in this case the zero. You can have: -$$\begin{gather*}\mathbb{N}^0=\mathbb{N}_0=\{1,2,...\}\\ \mathbb{N}^*=\mathbb{N}^+=\mathbb{N}_1=\mathbb{N}_{>0}=\{1,2,...\}\end{gather*}$$ +$$\begin{gather*}\mathbb{N}^0=\mathbb{N}_0=\{0,1,2,...\}\\ \mathbb{N}^*=\mathbb{N}^+=\mathbb{N}_1=\mathbb{N}_{>0}=\{1,2,...\}\end{gather*}$$ Defining the variable: diff --git a/book/optimization/simplex_exercise.md b/book/optimization/simplex_exercise.md index 78d42ab5ca1615c79345a53c6d6c80cfb96d782f..0dadfe59acd0db1930c526c847628c43bdf8541e 100644 --- a/book/optimization/simplex_exercise.md +++ b/book/optimization/simplex_exercise.md @@ -46,7 +46,9 @@ Find the graphical solution of this problem. Does it give the same solution as u :class: tip, dropdown ```{figure} ./figs/Graphical_solution.png -height: 300px +:height: 300px ``` -```` \ No newline at end of file +```` + +**Note:** in this problem and solution the intersection between the gradient and the constraints is not important (see figure), but rather the _direction_ that is important! It is a coincidence that the intersection is the optimal solution. \ No newline at end of file diff --git a/book/pd/exercises/exercise-sample-exam.md b/book/pd/exercises/exercise-sample-exam.md index 876f6fdea6169794d4d3c696c4220a89c92731d2..8c8ac10e8a7b92d69b388297f3e51e4c655f4c79 100644 --- a/book/pd/exercises/exercise-sample-exam.md +++ b/book/pd/exercises/exercise-sample-exam.md @@ -34,7 +34,7 @@ name: flood-protection **Question 1:** from the perspective of flooding in the city, the function of the dam and dike together is best described as a (choose one): a. series system b. parallel system -c. component system +c. a single component d. none of the above ```{admonition} Answer @@ -91,6 +91,8 @@ $$ First create an FN curve for the risk assessment +**NOTE:** _the figure below is slightly incorrect; the horizontal lines should be to the right of the "dots;" in other words, the 1E-05 value should be above N=100. This makes it more obvious why the system does not meet the safety criteria._ + ```{figure} ../figures/exercise-sample-exam-limit-line.png --- width: 400px diff --git a/book/pd/risk-analysis/steps.md b/book/pd/risk-analysis/steps.md index d4fcd6b420812096b2bc325a657cacb8538a4c09..154fe6cc6da82e2278f08e93d6f33defcf5f9ff0 100644 --- a/book/pd/risk-analysis/steps.md +++ b/book/pd/risk-analysis/steps.md @@ -56,7 +56,7 @@ $$ P(h_w>h_{dike}) = 0.5 \cdot P(h_w>h_{dike}|\mathrm{wet}) + 0.5 \cdot P(h_w>h_{dike}|\mathrm{dry}) $$ -Thus, if the risk analysis were only focusing on floods during the wet season, the probability of flooding would be overestimated by a factor of 2. +Thus, if the risk analysis were only focusing on floods during the wet season, the probability of flooding would be overestimated by a factor on the order of 2 (assuming the probability is roughly equal in dry and wet seasons). ### Consequences diff --git a/book/signal/videos.md b/book/signal/videos.md index c174520099dfcd94e8253b3fba70ebfc1907c514..ac2d62229a3f0f312d963843726e5d7e6fd5991d 100644 --- a/book/signal/videos.md +++ b/book/signal/videos.md @@ -13,7 +13,7 @@ The story of Signal Processing is told once again on this page through a series _In case small errors are present in the videos, please refer to the appropriate book chapter._ -```{admonotion} MUDE exam information +```{admonition} MUDE exam information :class: tip, dropdown These videos overlap to some extent with the theory presented in the book, and are meant to provide additional perspective on the same topic. Additional material that is presented in these videos is _not_ part of the exam; in other words, the exam scope is limited to contents that appear in the previous pages. ``` @@ -73,4 +73,4 @@ These videos overlap to some extent with the theory presented in the book, and a .. raw:: html <iframe width="560" height="315" src="https://www.youtube.com/embed/q7diLuuvSRU" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe> -``` \ No newline at end of file +``` diff --git a/book/time_series/videos.md b/book/time_series/videos.md index ef296d9acb2288dc07d7c652c616a54366dda93a..81a1a9f21dbd6892c1742823436963689cf0ff73 100644 --- a/book/time_series/videos.md +++ b/book/time_series/videos.md @@ -19,7 +19,7 @@ _Codes for the videos:_ The story of this chapter is told once more in this section with a series of videos. -```{admonotion} MUDE exam information +```{admonition} MUDE exam information :class: tip, dropdown These videos overlap to some extent with the theory presented in the book, and are meant to provide additional perspective on the same topic. Additional material that is presented in these videos is _not_ part of the exam; in other words, the exam scope is limited to contents that appear in the previous pages. ``` diff --git a/requirements.txt b/requirements.txt index ab62e4690ff345135aee36a75637502867fba52c..6576744bf4c7a41b8e577b2f27b5eaed157cf2fa 100644 --- a/requirements.txt +++ b/requirements.txt @@ -5,4 +5,4 @@ git+https://github.com/dbalague/sphinx-grasple jupyterquiz docutils == 0.17.1 --extra-index-url https://gitlab.tudelft.nl/api/v4/projects/17983/packages/pypi/simple -jupyterbook_patches \ No newline at end of file +jupyterbook_patches ~= 0.1.3