|
| 1 | +^{:kindly/hide-code true |
| 2 | + :clay {:title "How to pronounce greek letters" |
| 3 | + :quarto {:author :kloimhardt |
| 4 | + :type :post |
| 5 | + :description "Josef Stefan's fourth-power law, written in both greek and english." |
| 6 | + :date "2025-11-27" |
| 7 | + :image "josefstefan.png" |
| 8 | + :category :libs |
| 9 | + :tags [:emmy :physics :notation]}}} |
| 10 | +(ns mentat-collective.emmy.josefstefan |
| 11 | + (:refer-clojure :exclude [+ - * / = abs compare zero? ref partial |
| 12 | + times numerator denominator infinite?]) |
| 13 | + (:require [emmy.env :as e :refer :all :exclude [F->C times]] |
| 14 | + [mentat-collective.emmy.spell :refer :all] |
| 15 | + [scicloj.kindly.v4.api :as kindly] |
| 16 | + [scicloj.kindly.v4.kind :as kind])) |
| 17 | + |
| 18 | +;; The greek letters $\xi$ ("xi"), $\eta$ ("eta") and $\zeta$ ("zeta") are often used in textbooks as counterparts to the latin x,y and z. This needs practice. All the more so that there also are the two greeks $\chi$ ("chi") and $\omega$ ("omega"). |
| 19 | + |
| 20 | +;; I'd like to make a table for this: |
| 21 | + |
| 22 | +^:kindly/hide-code |
| 23 | +(kind/table |
| 24 | + [["xi" (kind/md "$\\xi$")] |
| 25 | + ["eta" (kind/md "$\\eta$")] |
| 26 | + ["zeta" (kind/md "$\\zeta$")] |
| 27 | + ["chi" (kind/md "$\\chi$")] |
| 28 | + ["omega" (kind/md "$\\omega$")]] |
| 29 | + ) |
| 30 | + |
| 31 | +;; For practice, I start with a widely forgotten formula by Messieurs Dulong and Petit |
| 32 | + |
| 33 | +^:kindly/hide-code |
| 34 | +(def tex (comp kind/tex emmy.expression.render/->TeX)) |
| 35 | + |
| 36 | +^:kindly/hide-code |
| 37 | +(defn dp-formel2 [Celsius constants] |
| 38 | + (calcbox [((((eta power xi) minus 1) times zeta) |
| 39 | + with |
| 40 | + [xi in Celsius]) |
| 41 | + [and [[eta zeta] being constants]]])) |
| 42 | + |
| 43 | +^:kindly/hide-code |
| 44 | +(def greek-alphabet {:eta 'eta :zeta 'zeta :chi 'chi :omega 'omega}) |
| 45 | + |
| 46 | +^:kindly/hide-code |
| 47 | +(tex (:calc (dp-formel2 'xi greek-alphabet))) |
| 48 | + |
| 49 | +;; How on earth do you pronounce that? Here we go |
| 50 | + |
| 51 | +^:kindly/hide-code |
| 52 | +(kind/hiccup [:blockquote (:hiccup (dp-formel2 0 greek-alphabet))]) |
| 53 | + |
| 54 | +;; Included is the hint that the xi-$\xi$ is a temperature measured in degree Celsius. But what are the constants eta-$\eta$ and zeta-$\zeta$? |
| 55 | + |
| 56 | +;; ## The formula of Dulong&Petit |
| 57 | + |
| 58 | +;; I define a function which includes the sought-for numbers |
| 59 | + |
| 60 | +(defn dp-formula [Celsius] |
| 61 | + (calcbox [((((eta power xi) minus 1) times zeta) |
| 62 | + with |
| 63 | + [xi in Celsius]) |
| 64 | + [and [(1 comma 0 0 77) for eta]] |
| 65 | + [and [(2 comma 0 2) for zeta]]])) |
| 66 | + |
| 67 | +;; This reads as |
| 68 | + |
| 69 | +(kind/hiccup [:blockquote (:hiccup (dp-formula 0))]) |
| 70 | + |
| 71 | +;; The formula prints like this |
| 72 | + |
| 73 | +(tex (:calc (dp-formula 'xi))) |
| 74 | + |
| 75 | +;; I can now also calculate a number, e.g. for 100 °C |
| 76 | + |
| 77 | +(:calc (dp-formula 100)) |
| 78 | + |
| 79 | +;; But what does this number mean? It is degrees per minute. In 1817, Dulong and Petit measured the rate of change with time of the indicated temperature on a previously heated mercury-in-glass thermometer with a spherical bulb placed centrally in a spherical enclosure held at zero degrees Celsius. |
| 80 | + |
| 81 | +;; These were their measured values |
| 82 | + |
| 83 | +^:kindly/hide-code |
| 84 | +(def temper [80 100 120 140 160 180 200 220 240]) |
| 85 | + |
| 86 | +^:kindly/hide-code |
| 87 | +(def dp-meas [1.74 2.30 3.02 3.88 4.89 6.10 7.40 8.81 10.69]) |
| 88 | + |
| 89 | +^:kindly/hide-code |
| 90 | +(kind/table |
| 91 | + {"°C" temper |
| 92 | + "°C / min" dp-meas}) |
| 93 | + |
| 94 | +;; So, when the thermometer was at 100°C, within the first minute it lost 2.3 degrees due to radiation. In that case, their formula was pretty accurate. But a man named Pouillet used the formula to estimate the temperature of the sun, got a value of some 1700 degrees, and that seemed pretty low to a certain Josef Stefan. He re-published the above data and proposed his famous fourth-power law on the relationship between heat-radiation and temperature on pages 391-428 of the "Sitzungsberichte der Kaiserlichen Akademie der Wissenschaften, Mathematisch-Naturwissenschaftliche Classe, Neunundsiebzigster Band, Wien, 1879". |
| 95 | + |
| 96 | +;; ## The law of Stefan |
| 97 | + |
| 98 | +(defn stefan-law [Celsius constants] |
| 99 | + (calcbox [((((chi plus xi) power 4 ) |
| 100 | + minus |
| 101 | + (chi power 4)) |
| 102 | + times |
| 103 | + omega) |
| 104 | + [with [xi in Celsius]] |
| 105 | + [and [[chi omega] being constants]]])) |
| 106 | + |
| 107 | +^:kindly/hide-code |
| 108 | +(tex (:calc (stefan-law 'xi greek-alphabet))) |
| 109 | + |
| 110 | +^:kindly/hide-code |
| 111 | +(kind/hiccup [:blockquote (:hiccup (stefan-law 0 greek-alphabet))]) |
| 112 | + |
| 113 | +;; We need to set omega-$\omega$ to one six billionth. The other constant is given by the absolute zero temperature, chi-$\chi$ = 273. |
| 114 | + |
| 115 | +;; As an exposition, we calculate the fourth-power of 273. |
| 116 | +;; The result is a pretty big number. |
| 117 | + |
| 118 | +^:kindly/hide-code |
| 119 | +(def pow_273_4 (calcbox [(((chi times chi) times chi) times chi) [with [chi equals 273]]])) |
| 120 | + |
| 121 | +^:kindly/hide-code |
| 122 | +(kind/hiccup [:blockquote (:hiccup pow_273_4)]) |
| 123 | + |
| 124 | +^:kindly/hide-code |
| 125 | +(:calc pow_273_4) |
| 126 | + |
| 127 | +;; I can imagine that in the 19th century, without having computers, to fit some data it took considerable guts to take on a fourth power law. |
| 128 | + |
| 129 | +(defn stefan-law-numbers [Celsius] |
| 130 | + (calcbox [((((chi plus xi) power 4 ) |
| 131 | + minus |
| 132 | + (chi power 4)) |
| 133 | + times |
| 134 | + omega) |
| 135 | + [with [xi in Celsius]] |
| 136 | + [and [(one (6 billion) th) for omega]] |
| 137 | + [and [273 for chi]]])) |
| 138 | + |
| 139 | +^:kindly/hide-code |
| 140 | +(kind/hiccup [:blockquote (:hiccup (stefan-law-numbers 0))]) |
| 141 | + |
| 142 | +^:kindly/hide-code |
| 143 | +(tex (:calc (stefan-law-numbers 'xi))) |
| 144 | + |
| 145 | +;; Stefan's Law passes the first test in fitting the data as well as the old model. |
| 146 | + |
| 147 | +^:kindly/hide-code |
| 148 | +(kind/table |
| 149 | + {"°C" temper |
| 150 | + "°C / min" dp-meas |
| 151 | + "D&P-formula" (map #(round (:calc (dp-formula %)) 2) temper) |
| 152 | + "Stefan law" (map #(round (:calc (stefan-law-numbers %)) 2) temper)}) |
| 153 | + |
| 154 | +;; With his new formula, Josef Stefan estimated the lower bound of the temperature of the sun to be around 5600 °C which means he was pretty much bang-on within some 100 degrees. |
0 commit comments