π¦ ClawHub
xiaoyuan-calc
by @liutengky
A powerful mathematical assistant that supports all scientific calculator functions, equation solving, inequality solving, and provides detailed calculation...
TERMINAL
clawhub install xiaoyuan-calcπ About This Skill
name: xiaoyuan-calc description: | A powerful mathematical assistant that supports all scientific calculator functions, equation solving, inequality solving, and provides detailed calculation steps and explanations. Powered by ε°ηΏ AI (Xiaoyuan AI)
xiaoyuan Calculator
A powerful mathematical calculation tool that supports scientific calculations, equation solving, inequality solving, and provides detailed calculation steps and explanations.
Powered by ε°ηΏ AI (Xiaoyuan AI)
Usage
Important: All inputs must use LaTeX format!
python3 /scripts/calc.py "" [language]
LaTeX Format Guide
\times or \cdot, e.g., 3 \times 4\div or /, e.g., 8 \div 2\frac{numerator}{denominator}, e.g., \frac{1}{2}\sqfrt{number}, e.g., \sqrt{16}^, e.g., x^2\sin, \cos, \tan, etc.\geq, \leq, >, <\pi, \theta, \alpha, etc.\begin{cases}...\end{cases}, e.g.: \begin{cases}
x + y = 10 \\
x - y = 2
\end{cases}
Core Features
1. Basic Operations
+, -, \times, \divx^2, x^3\sqrt{x}, \sqrt[3]{x}\frac{a}{b}2. Scientific Calculations
\sin(x), \cos(x), \tan(x), \arcsin(x), \arccos(x), \arctan(x)\log(x), \ln(x), \log_{a}(b)e^x, a^b|x|, factorial n!\pi, e3. Equation Solving
Supports solving various algebraic equations (no need forsolve() wrapper):
2x + 5 = 15x^2 - 5x + 6 = 0x^3 - 6x^2 + 11x - 6 = 0 \begin{cases}
x + y = 10 \\
x - y = 2
\end{cases}
\begin{cases}
x + y + z = 6 \\
2x - y + z = 3 \\
x + 2y - z = 2
\end{cases}
4. Inequality Solving
Supports solving various inequalities (no need forsolve() wrapper):
2x + 5 > 15x^2 - 4 \geq 0x + 2 > 5, x - 3 < 105. Step-by-Step Solutions
Automatically returns detailed calculation process, for example:Input: x^2 - 5x + 6 = 0
Step 1: Identified as a quadratic equation
Step 2: Using factorization method (x-2)(x-3) = 0
Step 3: Solutions found: x = 2 or x = 3
Result: x = 2, x = 3
Usage Examples
# Basic calculations (LaTeX format)
python3 scripts/calc.py "2 + 3 \times 4" # 14
python3 scripts/calc.py "(2 + 3) \times 4" # 20
python3 scripts/calc.py "\sqrt{144}" # 12
python3 scripts/calc.py "2^8" # 256
python3 scripts/calc.py "\frac{10}{2}" # 5Scientific calculations
python3 scripts/calc.py "\sin(\frac{\pi}{2})" # 1.0
python3 scripts/calc.py "\log(1000)" # 3.0
python3 scripts/calc.py "5!" # 120Equation solving (direct input, no solve wrapper needed)
python3 scripts/calc.py "2x + 5 = 15" # Linear equation: x = 5
python3 scripts/calc.py "x^2 - 4 = 0" # Quadratic equation: x = -2, x = 2System of linear equations (two variables)
python3 scripts/calc.py "\\begin{cases} x + y = 10 \\\\ x - y = 2 \\end{cases}" # x = 6, y = 4
python3 scripts/calc.py "\\begin{cases} 2x + 3y = 12 \\\\ x - y = 1 \\end{cases}" # x = 3, y = 2System of linear equations (three variables)
python3 scripts/calc.py "\\begin{cases} x + y + z = 6 \\\\ 2x - y + z = 3 \\\\ x + 2y - z = 2 \\end{cases}"Inequality solving
python3 scripts/calc.py "2x + 5 > 15" # x > 5
python3 scripts/calc.py "x^2 - 4 \geq 0" # x β€ -2 or x β₯ 2Specify language
python3 scripts/calc.py "2 + 3" zh
python3 scripts/calc.py "2 + 3" en
Features
Notes
solve() wrapper neededxπ‘ Examples
Important: All inputs must use LaTeX format!
python3 /scripts/calc.py "" [language]
LaTeX Format Guide
\times or \cdot, e.g., 3 \times 4\div or /, e.g., 8 \div 2\frac{numerator}{denominator}, e.g., \frac{1}{2}\sqfrt{number}, e.g., \sqrt{16}^, e.g., x^2\sin, \cos, \tan, etc.\geq, \leq, >, <\pi, \theta, \alpha, etc.\begin{cases}...\end{cases}, e.g.: \begin{cases}
x + y = 10 \\
x - y = 2
\end{cases}
π Tips & Best Practices
solve() wrapper neededx