← 返回
未分类

Math Expression

Use when the user wants an actual math result, simplification, expansion, exact value, high-precision value, analytic solution, or numerical solution for alg...
当用户需要实际的数学结果、简化、展开、精确值、高精度值、解析解或数值解时使用。
pansuestc pansuestc 来源
未分类 clawhub v1.0.2 1 版本 100000 Key: 无需
★ 0
Stars
📥 429
下载
💾 0
安装
1
版本
#latest

概述

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

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.

版本历史

共 1 个版本

  • v1.0.2 当前
    2026-05-03 09:58 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

dev-programming

YouTube

byungkyu
使用托管OAuth集成YouTube Data API,支持搜索视频、管理播放列表、获取频道数据及评论互动,适用于用户需要时使用此技能。
★ 142 📥 42,039
dev-programming

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 683 📥 330,619
dev-programming

Mcporter

steipete
使用 mcporter CLI 直接列出、配置、认证及调用 MCP 服务器/工具(支持 HTTP 或 stdio),涵盖临时服务器、配置编辑及 CLI/类型生成功能。
★ 197 📥 68,141