Compare commits
17 Commits
61f76cba3a
...
b080671aa7
Author | SHA1 | Date | |
---|---|---|---|
![]() |
b080671aa7 | ||
![]() |
8f8ea61710 | ||
![]() |
a9357af2eb | ||
![]() |
107002055b | ||
![]() |
b4cc677609 | ||
![]() |
948cbb3bce | ||
![]() |
0d914027e6 | ||
![]() |
8160525052 | ||
![]() |
5a3c1486fb | ||
![]() |
701bcf87aa | ||
![]() |
950f46655b | ||
![]() |
8dd761c084 | ||
![]() |
1d7b844ce7 | ||
![]() |
6be1bb929c | ||
![]() |
4e04256dd7 | ||
![]() |
a79c744389 | ||
![]() |
d5caf1e0b5 |
18
IT/Hashicorp Nomad.md
Normal file
18
IT/Hashicorp Nomad.md
Normal file
@ -0,0 +1,18 @@
|
||||
# Terminology
|
||||
## Cluster Terms
|
||||
|
||||
| Phrase | Definition |
|
||||
| ----------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| agent | A process running in server or client mode. |
|
||||
| client/node | A Nomad client is responsible for running tasks assigned to it. A client registers itself with servers and watches for work to be assigned. When running the agent, the client may be referred to as a *node*. |
|
||||
| server | A Nomad server manages all jobs and clients, monitors tasks, and controls which tasks get placed on which nodes. |
|
||||
| dev_agent | The development agent is an agent configuration that provides useful defaults for running a single node cluster of nomad. |
|
||||
|
||||
## Work terms
|
||||
| Phrase | Definition |
|
||||
| ------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| task | The smallest unit of work in Nomad. Tasks are executed by task drivers like `docker` or `exec`, which allows Nomad to be flexible in the types of tasks it supports. Tasks specify their required task driver, configuration for the driver, constraints, and resources required. |
|
||||
| group | A series of tasks that run on the same Nomad client. |
|
||||
| job | The core unit of *control* for Nomad and defines the application and its configuration. It can contain one or many tasks |
|
||||
| job_specification/jobspec | A job specification, also known as a jobspec. |
|
||||
| allocation | An allocation is a mapping between a task group in a job and a client node. When a job is run, Nomad will chose a client capable of running it and allocates resources on the machine for the ask(s) in the task group defined for the job. |
|
@ -1,3 +1,5 @@
|
||||
|
||||
# Sine/Cosine
|
||||

|
||||
|
||||
Given the above graph:
|
||||
@ -13,8 +15,6 @@ Given the above graph:
|
||||
| $y = cos(2x)$ | Horizontal shrink by a factor of 2 |
|
||||
# Periodic Functions
|
||||
A function is considered periodic if it repeats itself at even intervals, where each interval is a complete cycle, referred to as a *period*.
|
||||
|
||||
|
||||
# Sinusoidal Functions
|
||||
A function that has the same shape as a sine or cosine wave is known as a sinusoidal function.
|
||||
|
||||
@ -33,3 +33,55 @@ How to find the:
|
||||
|
||||
|
||||
$$ y = A * \sin(B(x-\frac{C}{B})) $$
|
||||
# Tangent
|
||||
$$ y = tan(x) $$
|
||||

|
||||
To find relative points to create the above graph, you can use the unit circle:
|
||||
|
||||
If $tan(x) = \frac{sin(x)}{cos(x})$, then:
|
||||
|
||||
| $sin(0) = 0$ | $cos(0) = 1$ | $tan(0) = \frac{cos(0)}{sin(0)} = \frac{0}{1} =0$ |
|
||||
| ----------------------------------------- | ----------------------------------------- | ---------------------------------------------------------------- |
|
||||
| $sin(\frac{\pi}{4}) = \frac{\sqrt{2}}{2}$ | $cos(\frac{\pi}{4}) = \frac{\sqrt{2}}{2}$ | $tan(\frac{\pi}{4}) = \frac{\sqrt{2}}{2}/\frac{\sqrt{2}}{2} = 1$ |
|
||||
| $sin(\frac{\pi}{2}) = 1$ | $cos(\frac{\pi}{2}) = 0$ | $tan(\frac{\pi}{2}) = \frac{1}{0} = DNF$ |
|
||||
Interpreting the above table:
|
||||
- When $x = 0$, $y = 0$
|
||||
- When $x = \frac{\pi}{4}$, $y = 1$
|
||||
- When $x = \frac{\pi}{2}$, there's an asymptote
|
||||
|
||||
Without any transformations applied, the period of $tan(x) = \pi$. Because $tan$ is an odd function, $tan(-x) = -tan(x)$.
|
||||
# Cotangent
|
||||
$$ y = cot(x) $$
|
||||

|
||||
|
||||
To find relative points to create the above graph, you can use the unit circle:
|
||||
|
||||
If $cot(x) = \frac{cos(x)}{sin(x)}$, then:
|
||||
|
||||
| $sin(0) = 0$ | $cos(0) = 1$ | $cot(0) = \frac{sin(0)}{cos(0)} = \frac{1}{0} = DNF$ |
|
||||
| ----------------------------------------- | ----------------------------------------- | ---------------------------------------------------------------- |
|
||||
| $sin(\frac{\pi}{4}) = \frac{\sqrt{2}}{2}$ | $cos(\frac{\pi}{4}) = \frac{\sqrt{2}}{2}$ | $cot(\frac{\pi}{4}) = \frac{\sqrt{2}}{2}/\frac{\sqrt{2}}{2} = 1$ |
|
||||
| $sin(\frac{\pi}{2}) = 1$ | $cos(\frac{\pi}{2}) = 0$ | $tan(\frac{\pi}{2}) = \frac{1}{0} = DNF$ |
|
||||
|
||||
Without any transformations applied, the period of $cot(x) = \pi$. Because $cot$ is an odd function, $cot(-x) = -cot(x)$.
|
||||
|
||||
# Features of Tangent and Cotangent
|
||||
Given the form $y = A\tan(Bx - C) + D$ (the same applies for $\cot$)
|
||||
- The stretching factor is $|A|$
|
||||
- The period is $\frac{\pi}{|B|}$
|
||||
- The domain of $tan$ is all of $x$, where $x \ne \frac{C}{B} + \frac{\pi}{2} + {\pi}{|B|}k$, where $k$ is an integer. (everywhere but the asymptotes)
|
||||
- The domain of $cot$ is all of $x$, where $x \ne \frac{C}{B} + \frac{\pi}{|B|}k$, where $k$ is an integer (everywhere but the asymptotes)
|
||||
- The range of both is $(-\infty, \infty)$
|
||||
- The phase shift is $\frac{C}{B}$
|
||||
- The vertical shift is $D$
|
||||
# Examples
|
||||
> Given $-2\tan(\pi*x + \pi) - 1$
|
||||
|
||||
$A = -2$, $B = \pi$, $C = -\pi$, $D = -1$
|
||||
|
||||
| Transformation | Equation |
|
||||
| -------------- | ------------------------- |
|
||||
| Stretch | $\|-2\| = 2$ |
|
||||
| Period | $\frac{\pi}{\|\pi\|} = 1$ |
|
||||
| Phase shift | $\frac{-\pi}{\pi} = -1$ |
|
||||
| Vertical shift | $-1$ |
|
||||
|
1
education/math/MATH1060 (trig)/assets/graphcot.svg
Normal file
1
education/math/MATH1060 (trig)/assets/graphcot.svg
Normal file
File diff suppressed because one or more lines are too long
After Width: | Height: | Size: 6.7 KiB |
BIN
education/math/MATH1060 (trig)/assets/graphtan.png
Normal file
BIN
education/math/MATH1060 (trig)/assets/graphtan.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 201 KiB |
@ -32,6 +32,9 @@ C99 adds a `long long` int
|
||||
## Floats
|
||||
A float is a decimal value. Slower arithmetic and inexact values are both drawbacks of using floats.
|
||||
|
||||
## Characters
|
||||
In C, a `char` denotes a single byte of arbitrary encoding.
|
||||
|
||||
## Variables
|
||||
A variable must be declared before it is assigned.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user