check_linearity
Determine whether a given system is linear by applying the superposition principle, returning a symbolic proof. Supports both memoryless expressions and difference equations.
Instructions
Checks if a system is linear using the superposition principle.
For system_type='memoryless': expression is in terms of 'x' and optionally 't'. Example: 'x**2', '3x', 'tx + 5'
For system_type='difference': expression is a difference equation in terms of 'x_n', 'x_n1' (x[n-1]), 'x_n2' (x[n-2]), 'y_n1' (y[n-1]), etc. Example: 'x_n + x_n1' (y[n] = x[n] + x[n-1])
Returns whether the system is linear with a symbolic proof.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"system_expression": "<system_expression>"
},
"name": "check_linearity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| system_type | No | memoryless | |
| system_expression | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |