Compare commits

..
6 Commits
Author SHA1 Message Date
Vojta bcd77cb314 Add newton approximation method and binary search 2025-06-09 11:27:44 +02:00
Vojta 301ad7dff2 Add regula falsi figure 2025-06-09 11:17:41 +02:00
Vojta b497825295 Print improvement
Don't pagebreak inside callouts
2025-06-08 22:43:11 +02:00
Vojta 360d1d9ebe Adjust index page 2025-06-08 21:09:26 +02:00
Vojta 77eec532a5 Print pagebreaks, inline width images 2025-06-07 13:12:59 +02:00
Vojta 83a00a467a Fix nested callout 2025-06-07 11:30:13 +02:00
10 changed files with 101 additions and 13 deletions

No files matched your search

+10 -3
View File
@@ -23,6 +23,14 @@ export default defineConfig({
src: "./src/assets/fi_16.png"
},
social: [{ icon: 'github', label: 'GitHub', href: 'https://git.vojtechstruhar.com/Vojta/fi-notes' }],
head: [
{
tag: "script",
attrs: {
src: "/scripts/load-images-before-print.js"
}
}
],
customCss: [
"remark-github-alerts/styles/github-colors-light.css",
"remark-github-alerts/styles/github-colors-dark-class.css",
@@ -30,8 +38,9 @@ export default defineConfig({
"katex/dist/katex.min.css",
"./src/styles/theme.css",
"./src/styles/footnotes-fix.css",
"./src/styles/pixelated-logo.css",
"./src/styles/images-adjustment.css",
"./src/styles/scroll-fix.css",
"./src/styles/print-improvements.css",
],
sidebar: [
{
@@ -85,8 +94,6 @@ export default defineConfig({
"szmgr/pgv09_minimalizace_energie",
"szmgr/pgv10_zpracovani_obrazu_pomoci_pde",
"szmgr/pgv_zpracovani_obrazu_intro",
]
},
@@ -0,0 +1,8 @@
function loadAllImages() {
document.querySelectorAll('img[loading="lazy"]').forEach(img => {
img.setAttribute('loading', 'eager');
});
}
// Before printing (manually or via browser)
window.addEventListener('beforeprint', loadAllImages);
+5 -4
View File
@@ -3,12 +3,13 @@ title: FI Notes
description: Notes (mostly in Czech) from the Faculty of Informatics of Masaryk University in Brno.
---
Notes (mostly in Czech) from the [Faculty of Informatics of Masaryk University](https://www.fi.muni.cz) in Brno. Source files are available on GitHub. Contributions are welcome!
# Contents
Notes (mostly in Czech) from the [Faculty of Informatics of Masaryk University](https://www.fi.muni.cz) in Brno. Source files are [available on GitHub](https://github.com/cafour/fi). Contributions are welcome!
> [!NOTE]
> Work in progress!
> This is just a Astro + Starlight markdown port of [Adam's original notes](https://fi.cafour.cz/szmgr/).
> Only MGR materials are here, his website has everything. All credit goes to Adam.
# Contents
- [SZMGR Státní zkouška (magisterský studijní program)](/szmgr)
@@ -77,6 +77,22 @@ description: "TODO"
3. Opakujeme 2. dokud nedosáhneme požadované přesnosti odhadu.
![width=400](./img/szp02_newton_method.png)
> [!NOTE]
> How to derive Newton approximation method:
> 1. Start with Taylor $f(x)=\sum_{n=0}^{1} \frac{f_n(a)}{n!} \cdot (x-a)^n$
> 2. Substitute $a = x_n$
>
> $f(x) \approx f(x_n) + f'(x_n)(x-x_n)$
>
> Now, we want to find $x_{n+1}$ such that $f(x) = f(x_{n+1}) = 0$.
>
> $0 \approx f(x_n) + f'(x_n)(x_{n+1}-x_n)$
>
> $0 \approx \frac{f(x_n)}{f'(x_n)} + x_{n+1} - x_n$
>
> $x_{n+1} = x_n - \frac{f(x_n)}{f'(x_n)}$
- **Metoda sečen / secant method**\
Používá k odhadu kořene funkce $f$ sečny, resp. _finite difference_, které aproximují derivaci funkce $f$. Díky tomu není potřeba znát derivaci funkce $f$. Iterační funkce je:
@@ -96,6 +112,12 @@ description: "TODO"
kde $s$ je největší index takový, že $f(x_k)f(x_s) < 0$.
![width=400](./img/szp02_regula_falsi.png)
- **Metoda Binary search**
Podobný princip jako _regula falsi_. Vybereš si interval $(x_0, x_1)$ kde kořen funkce leží v tomto intervalu ($f(x_{0,1})$ mají jiné znaménka).
Interval zmenšuješ binárním dělením - nový bod vybereš přímo uprostřed a interval upravíš aby kořen stále ležel v něm. Regula falsi se snaží zlepšit rychlost konvergence sofistikovanějším výběrem nového bodu, než jen střed.
## Přímé metody pro řešení systému lineárních rovnic
### Gaussova eliminace
@@ -121,9 +121,9 @@ description: "TODO"
> <br>
> Každý trojúhelník má 3 hrany a každá hrana je sdílena dvěma trojúhelníky, takže $E = \frac{3}{2} F$.
> <br>
> **💡 TIP**\
> > [!TIP]
> > Intuitivně: pokud jsme neúsporní, pak máme tři hrany pro každý trojúhelník ($3F$), každou hranu ale "přilepíme" k nějakému dalšímu trojúhelníku, takže každou hranu máme zbytečně dvakrát ($2E$), proto $3F = 2E$, tedy $E = \frac{3}{2} F$.
> <br>
>
> Z Euler-Poincaré plyne, že
> <br>
> ```math
@@ -776,7 +776,7 @@ Inverzní funkce je velice užitečná, ale poměrně složitá, takže doufám,
[^edge-detection]: [Wikipedia: Edge detection](https://en.wikipedia.org/wiki/Edge_detection)
[^fourier]: [Wikipedia: Fourier transform](https://en.wikipedia.org/wiki/Fourier_transform)
[^fft]: [Wikipedia: Fast Fourier transform](https://en.wikipedia.org/wiki/Fast_Fourier_transform)
[^samping]: [Wikipedia: Sampling (signal processing)](<https://en.wikipedia.org/wiki/Sampling_(signal_processing)>)
[^sampling]: [Wikipedia: Sampling (signal processing)](<https://en.wikipedia.org/wiki/Sampling_(signal_processing)>)
[^scaling]: [Wikipedia: Image scaling](https://en.wikipedia.org/wiki/Image_scaling)
[^n-s]: [Wikipedia: Nyquist–Shannon sampling theorem](https://en.wikipedia.org/wiki/Nyquist%E2%80%93Shannon_sampling_theorem)
[^geometric-transform]: [Wikipedia: Geometric transformation](https://en.wikipedia.org/wiki/Geometric_transformation)
Binary file not shown.

After

Width:  |  Height:  |  Size: 173 KiB

+43
View File
@@ -0,0 +1,43 @@
.site-title img {
image-rendering: pixelated;
}
img[alt="width=30%"] {
width: 30%;
display: inline;
}
img[alt="width=69%"] {
width: 69%;
display: inline;
}
img[alt="width=49%"] {
width: 49%;
display: inline;
}
img[alt="width=200"] {
width: 200px;
margin: auto;
}
img[alt="width=300"] {
width: 300px;
margin: auto;
}
img[alt="width=400"] {
width: 400px;
margin: auto;
}
img[alt="width=500"] {
width: 500px;
margin: auto;
}
img[alt="width=600"] {
width: 600px;
margin: auto;
}
img[alt="width=700"] {
width: 700px;
margin: auto;
}
-3
View File
@@ -1,3 +0,0 @@
.site-title img {
image-rendering: pixelated;
}
+10
View File
@@ -0,0 +1,10 @@
@media print {
h2,
h3 {
break-after: avoid-page;
}
.markdown-alert, .markdown-alert * {
break-inside: avoid-page;
}
}