Skip to content
Snippets Groups Projects
Commit e45fde40 authored by Robert Lanzafame's avatar Robert Lanzafame
Browse files

add katex tip

parent 4f110c82
No related branches found
No related tags found
No related merge requests found
%% Cell type:markdown id:d14e9d93 tags:
# Standard Elements
See `header_footer.XXXX` files for headers and footers.
%% Cell type:markdown id:fb3ea95b tags:
## Overview
This is where you describe the assignment **briefly**. The last sentence in this cell should not be changed. Feel free to use bullet lists to itemize steps and/or auxiliary files. This assignment includes:
1. a
2. b
3. c
This paragraph is for comments related to programming. As a general rule, always include all package imports in the next cell: **do not** add any sentences that say "here we import packages," **do not** include comments in the import cell and **do not** add more packages later on in the assignment. The only exception to this should be if packages are a key part of the assignment learning goal (i.e., showing how to import, practicing importing, etc). Follow [PEP-8 guidlines for importing](https://peps.python.org/pep-0008/#imports).
%% Cell type:code id:5144bfe5 tags:
``` python
import math
import numpy as np
```
%% Cell type:markdown id:8463a935 tags:
<div style="background-color:#AABAB2; color: black; vertical-align: middle; padding:15px; margin: 10px; border-radius: 10px; width: 95%">
<p>
<b>Task X:</b>
Always format the tasks for students in a box with black text and background color #AABAB2. If not clear where the end of the task is and the next content cell starts, use the "end of task" cell.
If you need to specify a function and/or part of the code you must use the HTML code blocks like this <code>name_of_the_function</code>.
If you need items add them like this:
<ol>
<li>First</li>
<li>Second</li>
<li>And so on</li>
</ol>
</p>
</div>
%% Cell type:markdown id:885ba76d tags:
<div style="background-color:#AABAB2; color: black; vertical-align: middle; padding:15px; margin: 10px; border-radius: 10px; width: 95%">
<p>
<b>End of task.</b>
</p>
</div>
%% Cell type:markdown id:1fdea3a8 tags:
**Write your answer in this Markdown cell.**
%% Cell type:markdown id:ddf68988 tags:
<div style="background-color:#FAE99E; color: black; vertical-align: middle; padding:15px; margin: 10px; border-radius: 10px; width: 95%">
<p>
<b>Solution:</b>
Always format the solution in a box with black text and background color #F9E282. Use this message to write the solution itself, or describe the format of the solution (e.g., the solution is written in the code cell below). To clearly indicate where the solution stops and the notebook contents continue, use an additional solution box with message "End of solution."
If you want to add bullet points do it like this:
<ol>
<li>First</li>
<li>Second</li>
<li>And so on</li>
</ol>
</p>
</div>
%% Cell type:markdown id:b4854192 tags:
<div style="background-color:#FAE99E; color: black; vertical-align: middle; padding:15px; margin: 10px; border-radius: 10px; width: 95%">
<p>
<b>End of solution.</b>
</p>
</div>
%% Cell type:markdown id:0e2385f2-7fe3-4ca3-8f42-3f22f3039be8 tags:
<div style="background-color:#ffa6a6; color: black; vertical-align: middle; padding:15px; margin: 10px; border-radius: 10px; width: 95%"><p><b>This:</b> is a major note! (danger)</p></div>
%% Cell type:markdown id:8bb3d88e-eb1e-4775-a88d-ea48b1fe849c tags:
<div style="background-color:#facb8e; color: black; vertical-align: middle; padding:15px; margin: 10px; border-radius: 10px; width: 95%"> <p>Minor note (warning). Don't use the CSS danger/warning blocks because they don't display when converting to HTML with pandoc (won't display right on course files on website).</p></div>
%% Cell type:markdown id:3800fec7 tags:
<div style="background-color:#C8FFFF; color: black; vertical-align: middle; padding:15px; margin: 10px; border-radius: 10px; width: 95%">
<p>
<b>Note:</b>
Any other notes can use a box with black text and background color #C8FFFF (a light version of TU Delft blue, cyan).
</p>
</div>
%% Cell type:markdown id:e3aab3b8 tags:
## LaTeX Equations
Never trust that things format properly.
Open up this Markdown cell to see an example where the LaTeX equation must be preceded by a blank line, then everything in that element works OK.
<div style="background-color:#FAE99E; color: black; width:95%; vertical-align: middle; padding:15px; margin: 10px; border-radius: 10px">
<p>
$\textbf{Solution}$
1. Coefficient of determination $ R^2 $ measures the percentage of the variance in our observations explained by the model. Thus, the higher, the better. As we can see, the value of $R^2$ is quite low. Only $\approx15\%$ of the variance is explained by the model, which is very low. Therefore, the linear model is not able to explain the scatter in our observations.
2. Based on the answer to the previous question, the linear model is not an accurate model. Whether this low level of accuracy is good enough or not, depends on the use we want to give to the model. Would you bet \$3? What about \$1,000?
</p>
</div>
```
<div style="background-color:#FAE99E; color: black; width:95%; vertical-align: middle; padding:15px; margin: 10px; border-radius: 10px">
<p>
$\textbf{Solution}$
1. Coefficient of determination $ R^2 $ measures the percentage of the variance in our observations explained by the model. Thus, the higher, the better. As we can see, the value of $R^2$ is quite low. Only $\approx15\%$ of the variance is explained by the model, which is very low. Therefore, the linear model is not able to explain the scatter in our observations.
2. Based on the answer to the previous question, the linear model is not an accurate model. Whether this low level of accuracy is good enough or not, depends on the use we want to give to the model. Would you bet \$3? What about \$1,000?
</p>
</div>
```
%% Cell type:markdown id:723dd636 tags:
## Task X
Main task
### Task X.1
Sub-task
%% Cell type:code id:63bf2e6a tags:
``` python
code = []
```
%% Cell type:markdown id:13175788 tags:
%% Cell type:markdown id:2e4617c0 tags:
**See `header_footer.XXXX` files for headers and footers.**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment