File tree Expand file tree Collapse file tree 1 file changed +44
-0
lines changed
Expand file tree Collapse file tree 1 file changed +44
-0
lines changed Original file line number Diff line number Diff line change 11## Solution Explanation
22
33Add intuition, math, and step-by-step reasoning here.
4+
5+ ### Writing Mathematical Expressions with LaTeX
6+
7+ This editor supports LaTeX for rendering mathematical equations and expressions. Here's how you can use it:
8+
9+ 1 . ** Inline Math** :
10+ - Wrap your expression with single ` $ ` symbols.
11+ - Example: ` $E = mc^2$ ` → Renders as: ( $E = mc^2$ )
12+
13+ 2 . ** Block Math** :
14+ - Wrap your expression with double ` $$ ` symbols.
15+ - Example:
16+ ```
17+ $$
18+ \int_a^b f(x) \, dx
19+ $$
20+ ```
21+ Renders as:
22+ $$
23+ \int_a^b f(x) \, dx
24+ $$
25+
26+ 3. **Math Functions**:
27+ - Use standard LaTeX functions like `\frac`, `\sqrt`, `\sum`, etc.
28+ - Examples:
29+ - `$\frac{a}{b}$` → ( $\frac{a}{b}$ )
30+ - `$\sqrt{x}$` → ( $\sqrt{x}$ )
31+
32+ 4. **Greek Letters and Symbols**:
33+ - Use commands like `\alpha`, `\beta`, etc., for Greek letters.
34+ - Example: `$\alpha + \beta = \gamma$` → ( $\alpha + \beta = \gamma$ )
35+
36+ 5. **Subscripts and Superscripts**:
37+ - Use `_{}` for subscripts and `^{}` for superscripts.
38+ - Examples:
39+ - `$x_i$` → ( $x_i$ )
40+ - `$x^2$` → ( $x^2$ )
41+
42+ 6. **Combined Examples**:
43+ - `$\sum_{i=1}^n i^2 = \frac{n(n+1)(2n+1)}{6}$`
44+ Renders as:
45+ $\sum_{i=1}^n i^2 = \frac{n(n+1)(2n+1)}{6}$
46+
47+ Feel free to write your own mathematical expressions, and they will be rendered beautifully in the preview!
You can’t perform that action at this time.
0 commit comments