Skip to content

Commit f71f681

Browse files
committed
Fix equations
1 parent 3c7bc60 commit f71f681

File tree

2 files changed

+10
-50
lines changed

2 files changed

+10
-50
lines changed

docs/src/tutorials/fitting/material_solvated.ipynb

Lines changed: 5 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -152,32 +152,11 @@
152152
"source": [
153153
"So for the `solvated_film` object, the scattering length density is calculated as,\n",
154154
"\n",
155-
"<math xmlns=\"http://www.w3.org/1998/Math/MathML\" display=\"block\">\n",
156-
"\n",
157-
" <mi>ρ</mi>\n",
158-
" <sub>\n",
159-
" <mi>solvent</mi>\n",
160-
" </sub>\n",
161-
" <mo>=</mo>\n",
162-
" <mo>(</mo>\n",
163-
" <mn>1</mn>\n",
164-
" <mo>-</mo>\n",
165-
" <mi>ϕ</mi>\n",
166-
" <sub>\n",
167-
" <mi>film</mi>\n",
168-
" </sub>\n",
169-
" <mo>)</mo>\n",
170-
" <mo>+</mo>\n",
171-
" <mi>ϕ</mi>\n",
172-
" <mi>ρ</mi>\n",
173-
" <sub>\n",
174-
" <mi>D</mi>\n",
175-
" <sub>\n",
176-
" <mn>2</mn>\n",
177-
" </sub>\n",
178-
" <mi>O</mi>\n",
179-
" </sub>\n",
180-
"</math>\n",
155+
"$$\n",
156+
"\\begin{aligned}\n",
157+
"\\rho_{solv film} = (1-\\phi)\\rho_{film} + \\phi\\rho_{D_2O},\n",
158+
"\\end{aligned}\n",
159+
"$$\n",
181160
"\n",
182161
"where the scattering length densities are given with <mi>ρ</mi> and the coverage with <mi>ϕ</mi>. \n",
183162
"This means that when we investigate the `solvated_film` object, the scattering length density will be 3.09e-6 Å<sup>-2</sup>"

docs/src/tutorials/fitting/monolayer.ipynb

Lines changed: 5 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -119,30 +119,11 @@
119119
"Each of these layers have some thickness that can be estimated by considering the size of the head and tail groups.\n",
120120
"The scattering length density (<mi>ρ</mi>) for the layers is then defined based on the layer thickness (<mi>d</mi>), the scattering length for the lipid head or tail molecule (<mi>b</mi>), the surface number density of the monolayer (defined by the area per molecule, APM) and the presence of solvent in the head or tail molecules (<mi>ϕ</mi> solvation), where the solvent has a known scattering length density (<mi>ρ</mi><sub>solvent</sub>),\n",
121121
"\n",
122-
"<math xmlns=\"http://www.w3.org/1998/Math/MathML\" display=\"block\">\n",
123-
" <mi>ρ</mi>\n",
124-
" <mo>=</mo>\n",
125-
" <mfrac>\n",
126-
" <mrow>\n",
127-
" <mi>b</mi>\n",
128-
" </mrow>\n",
129-
" <mrow>\n",
130-
" <mi>d</mi>\n",
131-
" <mi>APM</mi>\n",
132-
" </mrow>\n",
133-
" </mfrac>\n",
134-
" <mo>(</mo>\n",
135-
" <mn>1</mn>\n",
136-
" <mo>-</mo>\n",
137-
" <mi>ϕ</mi>\n",
138-
" <mo>)</mo>\n",
139-
" <mo>+</mo>\n",
140-
" <mi>ρ</mi>\n",
141-
" <msub>\n",
142-
" <mi>solvent</mi>\n",
143-
" </msub>\n",
144-
" <mi>ϕ</mi>\n",
145-
"</math>\n",
122+
"$$\n",
123+
"\\begin{aligned}\n",
124+
"\\rho = \\frac{b}{d\\mathrm{APM}}(1-\\phi) + \\rho_{\\mathrm{solvent}}\\phi\n",
125+
"\\end{aligned}\n",
126+
"$$\n",
146127
"\n",
147128
"This approach has two benefits: \n",
148129
"1. By constraining the area per molecule of the head and tail groups to be the same, the analysis can ensure that the number density of the two components is equal (i.e. for every head group there is a tail group), as would be expected given the chemical bonding.\n",

0 commit comments

Comments
 (0)