--- name: wolfram-alpha description: Query Wolfram Alpha for math, physics, chemistry, engineering calculations, unit conversions, scientific data, symbolic integration/differentiation, solving equations, and computational knowledge. Use when the user asks any math/physics/engineering question that needs exact computation (e.g. structural formulas, integrals, limits, ODEs, chemistry, units, formulas evaluation). Dr. Wael has Wolfram Alpha Pro — use it freely. ---
Wolfram Alpha Skill
When to Use
- Math: integrals, derivatives, limits, ODEs, algebra, matrix ops
- Engineering: beam formulas, moment of inertia, structural calcs
- Physics: kinematics, dynamics, electromagnetism
- Chemistry: molecular data, reactions, periodic table
- Units: conversions between any units (kN, psi, MPa, etc.)
- Science data: constants, properties of materials, planetary data
- Anything "compute this exact thing"
How to Call
The API key is in env var WOLFRAM_APP_ID. Use the helper script:
bash
bash /root/.openclaw/workspace/skills/wolfram-alpha/query.sh "integrate x^2 from 0 to 5"
Or direct curl:
bash
bash -c 'source /root/.openclaw/env.sh && curl -s "https://api.wolframalpha.com/v2/query?appid=${WOLFRAM_APP_ID}&input=$(python3 -c "import urllib.parse,sys;print(urllib.parse.quote(sys.argv[1]))" "QUERY_HERE")&output=json&format=plaintext"'
Output
Script returns readable text with each pod's title + plaintext result. For Arabic user queries, translate to English first then query.
Tips
- For structural engineering: try queries like "bending stress steel beam 200mm x 300mm 10kN/m"
- For integrals: "integrate x^2 * sin(x) dx"
- For units: "convert 50 MPa to psi"
- Always present the result clearly to Dr. Wael, and add a short Arabic explanation.