derivation_record_step
Record derivation steps with expression, description, and notes for a traceable math history. Use after SymPy calculations to log actions and reasoning with source and operation type.
Instructions
記錄一個推導步驟(從 SymPy-MCP 或手動)
═══════════════════════════════════════════════════════════════════════
這是 SymPy-MCP 和 NSForge 之間的橋樑!
═══════════════════════════════════════════════════════════════════════
用途:
1. 在 SymPy-MCP 計算後,把結果記錄到 NSForge 會話
2. 可以加入 notes 說明「為什麼這步要這樣做」
3. 保持完整的推導歷史
工作流程:
1. SymPy-MCP: intro + introduce_expression + substitute...
2. SymPy-MCP: print_latex_expression (確認結果)
3. NSForge: derivation_record_step (記錄這步 + 加入說明)
4. 重複 1-3
5. NSForge: derivation_complete
Args:
expression: SymPy 格式的表達式(從 SymPy-MCP 結果複製)
description: 這步做了什麼
latex: LaTeX 格式(可選,會自動生成)
notes: 額外說明(非計算性的人類知識!)
例如:「這裡假設線性,但酵素活性實際上是 S 型曲線」
source: 來源 ("sympy_mcp", "manual", "literature")
operation_type: 操作類型 ("substitute", "simplify", "solve", "custom")
set_as_current: 是否設為當前表達式(預設 True)
Returns:
記錄結果
Example:
# 在 SymPy-MCP 計算完成後
derivation_record_step(
expression="C*V_max_ref*exp(E_a*(1/T_ref - 1/T)/R)/(C + K_m)",
description="Substituted Arrhenius equation for Vmax",
notes="假設 Vmax 的溫度依賴遵循 Arrhenius,但實際上酵素在高溫會變性",
source="sympy_mcp"
)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| latex | No | ||
| notes | No | ||
| source | No | sympy_mcp | |
| expression | Yes | ||
| session_id | No | ||
| description | Yes | ||
| operation_type | No | custom | |
| set_as_current | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||