524 views
# Математичні вирази та схеми [ToC] ## LaTeX-формули Детальніше за [посиланням](https://ru.wikibooks.org/wiki/%D0%9C%D0%B0%D1%82%D0%B5%D0%BC%D0%B0%D1%82%D0%B8%D1%87%D0%B5%D1%81%D0%BA%D0%B8%D0%B5_%D1%84%D0%BE%D1%80%D0%BC%D1%83%D0%BB%D1%8B_%D0%B2_LaTeX). Приклад використання: Функція Gamma, що задовольняє $\Gamma(n) = (n-1)!\quad\forall n\in\mathbb N$, що здійснюється через інтеграл Ейлера: $$ x = {-b \pm \sqrt{b^2-4ac} \over 2a}. $$ $$ \Gamma(z) = \int_0^\infty t^{z-1}e^{-t}dt\,. $$ ```! Функція *Gamma*, що задовольняє $\Gamma(n) = (n-1)!\quad\forall n\in\mathbb N$, що здійснюється через інтеграл Ейлера: $$ x = {-b \pm \sqrt{b^2-4ac} \over 2a}. $$ $$ \Gamma(z) = \int_0^\infty t^{z-1}e^{-t}dt\,. $$ ``` ## Діаграми послідовності Детальніше за [посиланням](https://bramp.github.io/js-sequence-diagrams/). Приклад використання: ```sequence Марічка->Іван: Привіт, Іван, як справи? Note right of Іван: Іван посміхається Іван-->Марічка: Все добре, дякую. Note left of Марічка: Марічка позіхає Марічка->Іван: Коли у нас сессія? ``` ````! ``` sequence Марічка->Іван: Привіт, Іван, як справи? Note right of Іван: Іван посміхається Іван-->Марічка: Все добре, дякую. Note left of Марічка: Марічка позіхає Марічка->Іван: Коли у нас сессія? ``` ```` ## Алгоритми Детальніше за [посиланням](http://flowchart.js.org/). Приклад використання: ```flow st=>start: Початок e=>end: Кінець op=>operation: Обчислення op2=>operation: Текст Текст Текст cond=>condition: Так чи ні? st->op->op2->cond cond(yes)->e cond(no)->op2 ``` ````! ```flow st=>start: Початок e=>end: Кінець op=>operation: Обчислення op2=>operation: Текст Текст Текст cond=>condition: Так чи ні? st->op->op2->cond cond(yes)->e cond(no)->op2 ``` ```` ## Класифікація або ієрархія Детальніше за [посиланням](https://www.tonyballantyne.com/graphs.html). Приклад використання: ```graphviz digraph hierarchy { nodesep=1.0 // increases the separation between nodes node [color=Red,fontname=Courier,shape=box] //All nodes will this shape and colour edge [color=Blue, style=dashed] //All the lines look like this Університет->{Деканат1 Деканат2 Їдальня} Деканат1->{Кафедра1 Кафедра2} Їдальня-> Буфет {rank=same;Буфет Кафедра1 Кафедра2} // Put them on the same level } ``` ````! ```graphviz digraph hierarchy { nodesep=1.0 // increases the separation between nodes node [color=Red,fontname=Courier,shape=box] //All nodes will this shape and colour edge [color=Blue, style=dashed] //All the lines look like this Університет->{Деканат1 Деканат2 Їдальня} Деканат1->{Кафедра1 Кафедра2} Їдальня-> Буфет {rank=same;Буфет Кафедра1 Кафедра2} // Put them on the same level } ``` ```` ## Діаграма Ганта Детальніше за [посиланням](https://mermaid-js.github.io/mermaid/). Приклад використання: ```mermaid gantt title Графік-графік section Студент 1 Створення проекту :a1, 2014-01-01, 30d Захист проекту :after a1 , 20d section Студент 2 Створення проекту :2014-01-12 , 12d Захист проекту :20d ``` ````! ```mermaid gantt title Графік-графік section Студент 1 Створення проекту :a1, 2014-01-01, 30d Захист проекту :after a1 , 20d section Студент 2 Створення проекту :2014-01-12 , 12d Захист проекту :20d ``` ```` ## Ноти Детальніше за [посиланням](https://abcnotation.com/learn). Приклад використання: ```abc X:1 T:Speed the Plough M:4/4 C:Trad. K:G |:GABc dedB|dedB dedB|c2ec B2dB|c2A2 A2BA| GABc dedB|dedB dedB|c2ec B2dB|A2F2 G4:| |:g2gf gdBd|g2f2 e2d2|c2ec B2dB|c2A2 A2df| g2gf g2Bd|g2f2 e2d2|c2ec B2dB|A2F2 G4:| ``` ````! ```abc X:1 T:Speed the Plough M:4/4 C:Trad. K:G |:GABc dedB|dedB dedB|c2ec B2dB|c2A2 A2BA| GABc dedB|dedB dedB|c2ec B2dB|A2F2 G4:| |:g2gf gdBd|g2f2 e2d2|c2ec B2dB|c2A2 A2df| g2gf g2Bd|g2f2 e2d2|c2ec B2dB|A2F2 G4:| ``` ```` ## PlantUML Детальніше за [посиланням](https://plantuml.com/). Приклад використання: ```plantuml start if (condition A) then (yes) :Text 1; elseif (condition B) then (yes) :Text 2; stop elseif (condition C) then (yes) :Text 3; elseif (condition D) then (yes) :Text 4; else (nothing) :Text else; endif stop ``` ````! ```plantuml start if (condition A) then (yes) :Text 1; elseif (condition B) then (yes) :Text 2; stop elseif (condition C) then (yes) :Text 3; elseif (condition D) then (yes) :Text 4; else (nothing) :Text else; endif stop ``` ```` ## Vega-Lite Детальніше за [посиланням](https://vega.github.io/vega-lite/docs/). Приклад використання: ```vega { "$schema": "https://vega.github.io/schema/vega-lite/v4.json", "data": {"url": "https://vega.github.io/editor/data/barley.json"}, "mark": "bar", "encoding": { "x": {"aggregate": "sum", "field": "yield", "type": "quantitative"}, "y": {"field": "variety", "type": "nominal"}, "color": {"field": "site", "type": "nominal"} } } ``` ````! ```vega { "$schema": "https://vega.github.io/schema/vega-lite/v4.json", "data": {"url": "https://vega.github.io/editor/data/barley.json"}, "mark": "bar", "encoding": { "x": {"aggregate": "sum", "field": "yield", "type": "quantitative"}, "y": {"field": "variety", "type": "nominal"}, "color": {"field": "site", "type": "nominal"} } } ``` ````