derivation_substitute
Substitute a variable in a formula with another expression to build complex formulas step by step, while documenting your reasoning and assumptions for transparent derivation.
Instructions
代入操作(帶人類知識記錄)
將公式中的變數替換為另一個表達式。
這是組合公式的關鍵操作。
═══════════════════════════════════════════════════════════════════════
⚡ 每一步都可以加入人類知識!
═══════════════════════════════════════════════════════════════════════
Args:
variable: 要替換的變數名
replacement: 替換的表達式
in_formula: 在哪個公式中代入(預設為當前)
description: 操作描述
notes: 人類洞見(為什麼這樣做、觀察、警告)
assumptions: 這步的假設條件
limitations: 這步的限制
Returns:
代入結果(含記錄的知識)
Example:
derivation_substitute(
variable="k",
replacement="k_ref * exp(E_a/R * (1/T_ref - 1/T))",
description="Apply Arrhenius equation for temperature dependence",
notes="⚠️ 假設 V_max 遵循 Arrhenius,但酵素在 >42°C 會變性",
assumptions=["Temperature range 32-42°C", "No enzyme denaturation"],
limitations=["Not valid for high temperature"]
)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | No | ||
| variable | Yes | ||
| in_formula | No | ||
| session_id | No | ||
| assumptions | No | ||
| description | No | ||
| limitations | No | ||
| replacement | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||