{"skill":{"slug":"calculator","displayName":"Calculator","summary":"Accurate mathematical calculations. Use when user needs to compute: (1) Basic arithmetic (+, -, *, /), (2) Powers and roots (^, sqrt), (3) Percentages, (4) T...","description":"---\nname: calculator\ndescription: |\n  Accurate mathematical calculations. Use when user needs to compute: (1) Basic arithmetic (+, -, *, /), \n  (2) Powers and roots (^, sqrt), (3) Percentages, (4) Trigonometry (sin, cos, tan), \n  (5) Logarithms (log, ln), (6) Complex expressions, (7) Unit conversions.\n---\n\n# Calculator Skill\n\nPerform accurate mathematical calculations using the `calc.py` script.\n\n## Usage\n\nRun calculations directly with Python:\n\n```bash\npython3 <skill-path>/scripts/calc.py \"<expression>\"\n```\n\n## Supported Operations\n\n### Basic Arithmetic\n- `+` Addition: `2 + 3` → 5\n- `-` Subtraction: `10 - 4` → 6\n- `*` Multiplication: `6 * 7` → 42\n- `/` Division: `15 / 3` → 5\n\n### Powers & Roots\n- `^` or `**` Power: `2^10` → 1024\n- `sqrt()` Square root: `sqrt(16)` → 4\n\n### Percentages\n- `100 * 15%` → 15 (15% of 100)\n- `50 + 50 * 10%` → 55 (add 10%)\n\n### Trigonometry (radians)\n- `sin(pi/2)` → 1\n- `cos(pi)` → -1\n- `tan(pi/4)` → 1\n\n### Logarithms\n- `log(100)` → 2 (base 10)\n- `ln(e)` → 1 (natural log)\n\n### Constants\n- `pi` → 3.141592653589793\n- `e` → 2.718281828459045\n\n### Other Functions\n- `abs(-5)` → 5\n- `round(3.7)` → 4\n- `floor(3.9)` → 3\n- `ceil(3.1)` → 4\n- `pow(2, 8)` → 256\n\n## Examples\n\n```bash\npython3 scripts/calc.py \"2 + 3 * 4\"        # 14\npython3 scripts/calc.py \"(2 + 3) * 4\"       # 20\npython3 scripts/calc.py \"sqrt(144)\"         # 12\npython3 scripts/calc.py \"2^8\"               # 256\npython3 scripts/calc.py \"1000 * 5%\"         # 50\npython3 scripts/calc.py \"sin(0)\"            # 0\npython3 scripts/calc.py \"log(1000)\"         # 3\n```\n\n## Notes\n\n- Implicit multiplication supported: `2(3)` = `2*3`\n- Use parentheses for grouping\n- Float results are rounded to 10 decimal places to avoid precision issues\n","tags":{"arithmetic":"1.0.1","calculator":"1.0.1","latest":"1.0.1","math":"1.0.1"},"stats":{"comments":0,"downloads":2148,"installsAllTime":31,"installsCurrent":31,"stars":1,"versions":2},"createdAt":1772526326380,"updatedAt":1779077512595},"latestVersion":{"version":"1.0.1","createdAt":1772526821392,"changelog":"- Documentation improvements in SKILL.md for clarity and example coverage.\n- No changes to calculator functionalities or supported operations.","license":null},"metadata":null,"owner":{"handle":"yukin1218","userId":"s178axrafz143wh4011dn11rbd83gvv8","displayName":"Yukin1218","image":"https://avatars.githubusercontent.com/u/1689846?v=4"},"moderation":{"isSuspicious":false,"isMalwareBlocked":false,"verdict":"clean","reasonCodes":["review.llm_review"],"summary":"Review: review.llm_review","engineVersion":"v2.4.24","updatedAt":1780089742845}}