Sympy verify math

From FOURTEEN1416/academic-agent-toolkit · View interactive version

Sympy verify math is an AI agent skill from the GitHub repository FOURTEEN1416/academic-agent-toolkit. Verify mathematical derivations step-by-step using SymPy

How to use this skill

Skill file

Math Derivation Skill

Verify mathematical derivations step-by-step using SymPy.

When to Use

Workflow

For each derivation step:

  1. State the transformation being applied
  2. Write the result
  3. Verify with ./scripts/verify.py before proceeding

Verification Commands

# Check two expressions are equal
./scripts/verify.py eq "EXPR1" "EXPR2"

# Compute derivative
./scripts/verify.py diff "EXPR" [VAR]

# Compute integral
./scripts/verify.py int "EXPR" [VAR]

# Simplify/expand expression
./scripts/verify.py simp "EXPR"

# Solve equation (EXPR = 0)
./scripts/verify.py solve "EXPR" [VAR]

Paths are relative to this skill's directory.

Expression Syntax

Example Derivation

Problem: Find dF/ds where F(s) = s - log(e^s + C)

Step 1: Apply derivative rule

dF/ds = 1 - d/ds[log(e^s + C)]
      = 1 - e^s/(e^s + C)
./scripts/verify.py diff "s - log(exp(s) + C)" s

Step 2: Simplify to single fraction

= (e^s + C - e^s)/(e^s + C)
= C/(e^s + C)
./scripts/verify.py eq "1 - exp(s)/(exp(s) + C)" "C/(exp(s) + C)"
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.