Skip to content

Commit c415a50

Browse files
authored
Emmy: Lorentz covariant mechanics (#279)
* SILCM * constraint * Lorentz-covariant doodles * de Broglie
1 parent ef1bf02 commit c415a50

File tree

3 files changed

+443
-5
lines changed

3 files changed

+443
-5
lines changed

site/_quarto.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ website:
4141
text: "FDG Chapter 1 Infix"
4242
- href: mentat_collective/emmy/sicm_ch01.qmd
4343
text: "SICM Chapter 1"
44+
- href: mentat_collective/emmy/silcm_ch01.qmd
45+
text: "Lorentz Covariant"
4446

4547
format:
4648
html:

src/mentat_collective/emmy/sicm_ch01.clj

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,7 @@
1919
;; The following examples are taken from the MIT open-access book [Structure and Interpretation of Classical Mechanics (SICM)](https://mitp-content-server.mit.edu/books/content/sectbyfn/books_pres_0/9579/sicm_edition_2.zip/chapter001.html).
2020

2121
^:kindly/hide-code
22-
(do
23-
"if you `prod` to `false`, the browser will be busy calculating, be patient"
24-
(def prod true))
22+
(def prod true) #_"if you set `prod` to `false`, the browser will be busy calculating, be patient"
2523

2624
^:kindly/hide-code
2725
(def md
@@ -64,7 +62,7 @@
6462
(define emmy-mn
6563
'[emmy.numerical.minimize :as mn])
6664

67-
^:kindly/hide-code
65+
^{:kindly/hide-code true :kindly/kind kind/hidden}
6866
(do
6967
(require emmy-env)
7068
(require emmy-lg)
@@ -84,7 +82,8 @@
8482

8583
^:kindly/hide-code
8684
(kind/scittle
87-
'(def show-tex-expression show-expression))
85+
'(defn show-tex-expression [e]
86+
(->infix (simplify e))))
8887

8988
^:kindly/hide-code
9089
(def tex (comp kind/tex emmy.expression.render/->TeX simplify))

0 commit comments

Comments
 (0)