Skip to content

Commit f7f9514

Browse files
authored
Update learn.md
1 parent 8b42474 commit f7f9514

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

questions/_template/learn.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,47 @@
11
## Solution Explanation
22

33
Add 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!

0 commit comments

Comments
 (0)