diff --git a/README.md b/README.md index 16a10f6..0407227 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,7 @@ +$$ \dot{\vec{vec}} \hspace{1.25em} \begin{matrix} \hat{i} \cdot \frac{\text{m}}{\text{s}} \\ \hat{j} \cdot \frac{\text{m}}{\text{s}} \\ \hat{k} \cdot \frac{\text{m}}{\text{s}} \end{matrix}\normalsize \hspace{0.7em} \small\text{wrt. O}\normalsize $$ + + + # mathpad @@ -61,9 +65,7 @@ pip install mathpad
Feature | Example | Display | @@ -102,14 +104,7 @@ feet.in_units(cm)-$$ 1 \hspace{1.25em} \text{m} $$ - -$$ 1 \hspace{1.25em} \frac{\text{m}}{\text{s}^{2}} $$ - -$$ 30.48 \hspace{1.25em} \text{cm} $$ - - -$$ 1 \hspace{1.25em} \text{W} $$ +![Alt text](examples/imgs/showcase/units.png) | -$$ 2.5 \hspace{1.25em} \frac{\text{m}}{\text{s}} $$ - -$$ 5 \hspace{1.25em} \text{m} $$ +![Alt text](examples/imgs/showcase/values.png) | @@ -145,10 +138,7 @@ y = "\\hat{y}_1" * volts-$$ t \hspace{1.25em} \text{s} $$ - - -$$ \hat{y}_1 \hspace{1.25em} \text{V} $$ +![Alt text](examples/imgs/showcase/symbols.png) | @@ -163,7 +153,7 @@ a = "a(t)" * m / s ** 2-$$ a{\left(t \right)} \hspace{1.25em} \frac{\text{m}}{\text{s}^{2}} $$ +![Alt text](examples/imgs/showcase/sym-funcs.png) | @@ -178,7 +168,7 @@ eqn = (v == a * t)-$$ 2.5 = t a \hspace{1.25em} \frac{\text{m}}{\text{s}} $$ +![Alt text](examples/imgs/showcase/equations.png) | @@ -195,7 +185,7 @@ sln[a]-$$ 0 \hspace{1.25em} \frac{\text{m}}{\text{s}^{2}} $$ +![Alt text](examples/imgs/showcase/solving.png) | @@ -217,13 +207,7 @@ subs((t + 1)(t + 2), { t: 5 })-$$ -1 \hspace{1.25em} dimensionless $$ - -$$ t^{2} + 3 t + 2 \hspace{1.25em} \text{s}^{2} $$ - -$$ \left(t + 1\right) \left(t + 2\right) \hspace{1.25em} \text{s}^{2} $$ - -$$ 42 \hspace{1.25em} \text{s}^{2} $$ +![Alt text](examples/imgs/showcase/algebra.png) | @@ -241,11 +225,7 @@ integral(a, wrt=t, between=(0, 10))- -$$ \dot{a} \hspace{1.25em} \frac{\text{m}}{\text{s}^{3}} $$ - -$$ \int\limits_{0}^{10} a\, dt \hspace{1.25em} \frac{\text{m}}{\text{s}} $$ - +![Alt text](examples/imgs/showcase/calculus.png) | @@ -271,16 +251,9 @@ v2.cross(v3) ``` -- -$$ \begin{bmatrix}1 \\ 2 \\ 3 \end{bmatrix} \hspace{1.25em} \begin{matrix} \hat{i} \cdot \text{m} \\ \hat{j} \cdot \text{m} \\ \hat{k} \cdot \text{m} \end{matrix}\normalsize \hspace{0.7em} \small\text{wrt. O}\normalsize $$ - -$$ \begin{bmatrix}x \\ y \\ z \end{bmatrix} \hspace{1.25em} \begin{matrix} \hat{i} \cdot \text{m} \\ \hat{j} \cdot \text{m} \\ \hat{k} \cdot \text{m} \end{matrix}\normalsize \hspace{0.7em} \small\text{wrt. O}\normalsize $$ - -$$ \vec{v_3} \hspace{1.25em} \begin{matrix} \hat{i} \cdot \text{m} \\ \hat{j} \cdot \text{m} \\ \hat{k} \cdot \text{m} \end{matrix}\normalsize \hspace{0.7em} \small\text{wrt. O}\normalsize $$ - -$$ \left[\begin{matrix}x\\y\\z\end{matrix}\right] \times \vec{v_3} \hspace{1.25em} \begin{matrix} \hat{i} \cdot \text{m}^{2} \\ \hat{j} \cdot \text{m}^{2} \\ \hat{k} \cdot \text{m}^{2} \end{matrix}\normalsize \hspace{0.7em} \small\text{wrt. O}\normalsize $$ + | +![Alt text](examples/imgs/showcase/vectors.png) | @@ -309,19 +282,7 @@ I = Mat[O2, O2].I
- - - -$$ \left[\begin{matrix}1 & 2\\3 & 4\\5 & 6\end{matrix}\right] \hspace{1.25em} \begin{matrix} \hat{i} \cdot \text{m} \\ \hat{j} \cdot \text{m} \\ \hat{k} \cdot \text{m} \end{matrix}\normalsize \hspace{0.7em} \small\text{wrt. O}\normalsize \hspace{0.75em} ⟷ \hspace{0.75em} \begin{matrix} \hat{i} \cdot \text{m} \\ \hat{j} \cdot \text{m} \end{matrix}\normalsize \hspace{0.7em} \small\text{wrt. O2}\normalsize $$ - - - - -$$ \begin{bmatrix}x + 3 y + 5 z \\ 2 x + 4 y + 6 z \end{bmatrix} \hspace{1.25em} \begin{matrix} \hat{i} \cdot \text{m} \\ \hat{j} \cdot \text{m} \end{matrix}\normalsize \hspace{0.7em} \small\text{wrt. O2}\normalsize $$ - -$$ \mathbf{B} \hspace{1.25em} \begin{matrix} \hat{i} \cdot \text{m} \\ \hat{j} \cdot \text{m} \end{matrix}\normalsize \hspace{0.7em} \small\text{wrt. O2}\normalsize \hspace{0.75em} ⟷ \hspace{0.75em} \begin{matrix} \hat{i} \cdot \text{m} \\ \hat{j} \cdot \text{m} \\ \hat{k} \cdot \text{m} \end{matrix}\normalsize \hspace{0.7em} \small\text{wrt. O}\normalsize $$ - -$$ \left[\begin{matrix}1 & 0\\0 & 1\end{matrix}\right] \hspace{1.25em} \begin{matrix} \hat{i} \cdot \text{m} \\ \hat{j} \cdot \text{m} \end{matrix}\normalsize \hspace{0.7em} \small\text{wrt. O2}\normalsize \hspace{0.75em} ⟷ \hspace{0.75em} \begin{matrix} \hat{i} \cdot \text{m} \\ \hat{j} \cdot \text{m} \end{matrix}\normalsize \hspace{0.7em} \small\text{wrt. O2}\normalsize $$ +![Alt text](examples/imgs/showcase/matrices.png) |
@@ -344,7 +305,7 @@ y_fn({
```
-+ |
array([0.84147098, 0.90929743, 0.14112001]) @@ -359,19 +320,6 @@ array([0. , 0.25881905, 0.5 , 0.70710678, 0.8660254 , |
Simulation | -- -```python - -generate_c_code(theta, [t]) -``` - - | -- - - | |