You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To find the mean of a set of observations, add the values and divide by the number of observations:
141
+
```math
142
+
\bar{x} = \frac{x_1 + x_2 + … + x_n}{n}
143
+
```
144
+
This can be written in more compact form:
145
+
```math
146
+
\bar{x} = \frac{1}{n}∑x_i.
147
+
```
169
148
170
149
Other times the mathematical expression is a stand-alone element, not part of an ongoing sentence or paragraph. In such examples it is important to place the `<math>` element inside a `<p>` element or something similar. Here is an example:
171
150
@@ -182,16 +161,11 @@ Other times the mathematical expression is a stand-alone element, not part of an
182
161
</p>
183
162
```
184
163
The example will be rendered as follows:
185
-
<p>Text preceding a stand-alone block of math content.</p>
186
-
<p>
187
-
<mathdisplay="block">
188
-
<mi>a</mi>
189
-
<mo>+</mo>
190
-
<mi>b</mi>
191
-
<mo>=</mo>
192
-
<mi>c</mi>
193
-
</math>
194
-
</p>
164
+
165
+
Text preceding a stand-alone block of math content.
166
+
```math
167
+
a + b = c.
168
+
```
195
169
196
170
Sometimes a mathematical expression consists of multiple mathematical expressions, and they all appear on the same line. Examples are functions where the domain is a restricted interval, or a differential equation, with an intial value. In such cases, all the expressions should be captured in the same `<math>` element separated by `<mspace>`. Here is an example:
197
171
@@ -211,19 +185,10 @@ Sometimes a mathematical expression consists of multiple mathematical expression
0 commit comments