Install
openclaw skills install calculatorAccurate mathematical calculations. Use when user needs to compute: (1) Basic arithmetic (+, -, *, /), (2) Powers and roots (^, sqrt), (3) Percentages, (4) Trigonometry (sin, cos, tan), (5) Logarithms (log, ln), (6) Complex expressions, (7) Unit conversions.
openclaw skills install calculatorPerform accurate mathematical calculations using the calc.py script.
Run calculations directly with Python:
python3 <skill-path>/scripts/calc.py "<expression>"
+ Addition: 2 + 3 → 5- Subtraction: 10 - 4 → 6* Multiplication: 6 * 7 → 42/ Division: 15 / 3 → 5^ or ** Power: 2^10 → 1024sqrt() Square root: sqrt(16) → 4100 * 15% → 15 (15% of 100)50 + 50 * 10% → 55 (add 10%)sin(pi/2) → 1cos(pi) → -1tan(pi/4) → 1log(100) → 2 (base 10)ln(e) → 1 (natural log)pi → 3.141592653589793e → 2.718281828459045abs(-5) → 5round(3.7) → 4floor(3.9) → 3ceil(3.1) → 4pow(2, 8) → 256python3 scripts/calc.py "2 + 3 * 4" # 14
python3 scripts/calc.py "(2 + 3) * 4" # 20
python3 scripts/calc.py "sqrt(144)" # 12
python3 scripts/calc.py "2^8" # 256
python3 scripts/calc.py "1000 * 5%" # 50
python3 scripts/calc.py "sin(0)" # 0
python3 scripts/calc.py "log(1000)" # 3
2(3) = 2*3