返回顶部
m

math-expression

Use when the user wants an actual math result, simplification, expansion, exact value, high-precision value, analytic solution, or numerical solution for algebra, calculus, linear algebra, series, asymptotics, or ODE/PDE problems.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.2
安全检测
已通过
90
下载量
0
收藏
概述
安装方式
版本历史

math-expression

# Math Expression ## Overview Use this skill when a natural-language math request should be translated into a single Wolfram Language expression and then evaluated or solved. It fits symbolic algebra, calculus, exact arithmetic, high-precision numerics, matrix problems, series, asymptotics, and ODE/PDE tasks. It does not replace a general code executor or a multi-step notebook workflow. ## Quick start ```bash python3 -m pip install --user wolframclient python3 {baseDir}/scripts/eval_expression.py --expr "Factor[x^4 - 1]" python3 {baseDir}/scripts/eval_expression.py --expr "DSolve[y''[x] + y[x] == 0, y[x], x]" python3 {baseDir}/scripts/eval_expression.py --expr "N[Pi, 80]" --precision 80 --json ``` ## Safety boundary - Use this skill for math-only Wolfram Language expressions. - By default, the script blocks filesystem, network, and process-related symbols such as `Import`, `URLRead`, `Run`, `RunProcess`, `Get`, `Put`, `OpenRead`, and `OpenWrite`. - Do not disable this guard unless the runtime is isolated. - This skill is not a general code execution tool and not a multi-step notebook agent. ## Workflow 1. Convert the user's request into one Wolfram Language expression. 2. Check that the expression is math-only. 3. Run `scripts/eval_expression.py --expr "..."` 4. Return `Exact`, `Numeric`, `Verified`, and `Version`. ## Examples - Algebraic simplification: `Factor[x^4 - 1]` - Definite integral: `Integrate[x^2 Exp[-x], {x, 0, Infinity}]` - Limit: `Limit[(Sin[x] - x)/x^3, x -> 0]` - ODE analytic solution: `DSolve[y''[x] + y[x] == 0, y[x], x]` - PDE numeric solution: `NDSolve[{D[u[x, t], t] == D[u[x, t], {x, 2}], u[0, t] == 0, u[1, t] == 0, u[x, 0] == Sin[Pi x]}, u, {x, 0, 1}, {t, 0, 1}]` - Asymptotic expansion: `Asymptotic[LogGamma[x], x -> Infinity, 5]` - High-precision value: `N[Pi, 120]` ## Notes - Input is Wolfram Language only. - This skill is single-expression and single-run. - Runtime dependency: `wolframclient` and `WolframKernel`.

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 math-expression-1776050649 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 math-expression-1776050649 技能

通过命令行安装

skillhub install math-expression-1776050649

下载 Zip 包

⬇ 下载 math-expression v1.0.2

文件大小: 7 KB | 发布时间: 2026-4-14 10:31

v1.0.2 最新 2026-4-14 10:31
Tighten trigger scope, clarify math-only boundaries, sync docs, and remove redundant test file.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部