desmos-graphinglisted
Install: claude install-skill aiskillstore/marketplace
# Desmos Graphing in Obsidian
## ⚠️ CRITICAL: Dual Parser System
The plugin uses **different parsers** for different parts:
| Location | Parser | pi | sqrt | Example |
|----------|--------|-----|------|---------|
| Settings | mathjs | `pi` | - | `left=-2*pi+0.5` |
| Equations | Desmos (LaTeX) | `\pi` | `\sqrt{x}` | `y=\sqrt{x}+\pi` |
| Points | Desmos (LaTeX) | `\pi` | `\sqrt{x}` | `(\pi/2, 1)` |
| **Restrictions** | plain math | numeric | `x^0.5` | `x>-1.5708` |
```markdown
✅ CORRECT
left=-0.5; right=2*pi+0.5
---
y=\sqrt{x}|blue
y=x/\sqrt{3}|green|0<=x<=3^0.5
(\pi/2, 0)|label:cos(90°)=0
❌ WRONG (will error)
left=-2*\pi # Error: "Syntax error in part '\pi'"
y=\sin(x+pi/4) # Error: "Too many variables" (p*i)
(pi/2, 0) # Error: "Too many variables" ← Points need LaTeX!
y=x/sqrt(3)|0<=x<=sqrt(3) # Error: "Too many variables" (s*q*r*t)
```
**Key rule**: `\sqrt{x}` in equations, `x^0.5` in restrictions!
## Code Block Format
````markdown
```desmos-graph
[settings]
---
[equations]
```
````
- Settings (optional) above `---`, equations below
- Each equation on its own line
- Use `|` to add styling/restrictions to equations
## Quick Start
### Basic Function
````markdown
```desmos-graph
y=x^2
y=\sin(x)|blue
```
````
### With Settings
````markdown
```desmos-graph
left=-2*pi; right=2*pi
bottom=-2; top=2
---
y=\sin(x)|red
y=\cos(x)|blue|dashed
```
````
### Points and Labels
````markdown
```desmos-graph
(0, 0)|label:Origin
(3, 4)|red|