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 - $$ 5 \hspace{1.25em} \frac{\text{m}}{\text{s}} $$ - - $$ mph = 11.1847 \hspace{1.25em} \frac{\text{mile}}{\text{hour}} $$ + ![Alt text](examples/imgs/showcase/basic.png) @@ -78,9 +80,9 @@ Currently the only in-depth documentation is `Walkthrough.ipynb`. You can access ## Showcase ---+++ @@ -102,14 +104,7 @@ feet.in_units(cm) @@ -126,9 +121,7 @@ c = m(5) @@ -145,10 +138,7 @@ y = "\\hat{y}_1" * volts @@ -163,7 +153,7 @@ a = "a(t)" * m / s ** 2 @@ -178,7 +168,7 @@ eqn = (v == a * t) @@ -195,7 +185,7 @@ sln[a] @@ -217,13 +207,7 @@ subs((t + 1)(t + 2), { t: 5 }) @@ -241,11 +225,7 @@ integral(a, wrt=t, between=(0, 10)) @@ -271,16 +251,9 @@ v2.cross(v3) ``` - @@ -309,19 +282,7 @@ I = Mat[O2, O2].I @@ -344,7 +305,7 @@ y_fn({ ``` - - - - diff --git a/examples/imgs/showcase/algebra.png b/examples/imgs/showcase/algebra.png new file mode 100644 index 0000000..5a07e50 Binary files /dev/null and b/examples/imgs/showcase/algebra.png differ diff --git a/examples/imgs/showcase/basic.png b/examples/imgs/showcase/basic.png new file mode 100644 index 0000000..f27ed60 Binary files /dev/null and b/examples/imgs/showcase/basic.png differ diff --git a/examples/imgs/showcase/calculus.png b/examples/imgs/showcase/calculus.png new file mode 100644 index 0000000..385fbbd Binary files /dev/null and b/examples/imgs/showcase/calculus.png differ diff --git a/examples/imgs/showcase/equations.png b/examples/imgs/showcase/equations.png new file mode 100644 index 0000000..ac753bd Binary files /dev/null and b/examples/imgs/showcase/equations.png differ diff --git a/examples/imgs/showcase/matrices.png b/examples/imgs/showcase/matrices.png new file mode 100644 index 0000000..2702eb5 Binary files /dev/null and b/examples/imgs/showcase/matrices.png differ diff --git a/examples/imgs/showcase/solving.png b/examples/imgs/showcase/solving.png new file mode 100644 index 0000000..2322edd Binary files /dev/null and b/examples/imgs/showcase/solving.png differ diff --git a/examples/imgs/showcase/sym-funcs.png b/examples/imgs/showcase/sym-funcs.png new file mode 100644 index 0000000..869b6f2 Binary files /dev/null and b/examples/imgs/showcase/sym-funcs.png differ diff --git a/examples/imgs/showcase/symbols.png b/examples/imgs/showcase/symbols.png new file mode 100644 index 0000000..29f768c Binary files /dev/null and b/examples/imgs/showcase/symbols.png differ diff --git a/examples/imgs/showcase/units.png b/examples/imgs/showcase/units.png new file mode 100644 index 0000000..f64eb43 Binary files /dev/null and b/examples/imgs/showcase/units.png differ diff --git a/examples/imgs/showcase/values.png b/examples/imgs/showcase/values.png new file mode 100644 index 0000000..1de40c7 Binary files /dev/null and b/examples/imgs/showcase/values.png differ diff --git a/examples/imgs/showcase/vectors.png b/examples/imgs/showcase/vectors.png new file mode 100644 index 0000000..2fb91ad Binary files /dev/null and b/examples/imgs/showcase/vectors.png differ
Feature Example Display -$$ 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)
-$$ t \hspace{1.25em} \text{s} $$ - - -$$ \hat{y}_1 \hspace{1.25em} \text{V} $$ +![Alt text](examples/imgs/showcase/symbols.png)
-$$ a{\left(t \right)} \hspace{1.25em} \frac{\text{m}}{\text{s}^{2}} $$ +![Alt text](examples/imgs/showcase/sym-funcs.png)
-$$ 2.5 = t a \hspace{1.25em} \frac{\text{m}}{\text{s}} $$ +![Alt text](examples/imgs/showcase/equations.png)
-$$ 0 \hspace{1.25em} \frac{\text{m}}{\text{s}^{2}} $$ +![Alt text](examples/imgs/showcase/solving.png)
-$$ -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)
- -$$ \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)
- -$$ \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)
-
-
- -$$ \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)
+
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]) -``` - - - - -