Control Discretize
control_discretizeConvert a continuous SISO transfer function G(s) to discrete G(z) with zoh, foh, tustin, or euler methods; returns z-polynomials, difference equation, pole map, and a Jury stability verdict.
Instructions
Convert a continuous SISO transfer function G(s) (numerator/denominator coefficient lists in descending powers or text) to discrete G(z) for a sample_time: method zoh (zero-order hold), foh (first-order hold), tustin (bilinear; optional prewarp_frequency in rad/s), forward_euler, backward_euler or matched (pole-zero). Returns the z-domain polynomials (monic denominator), the exact formula used, the difference equation, a pole map (each s-pole to its z-pole with |z| and stable/unstable), an exact Jury stability verdict, DC gain comparison and the frequency-response error. The transfer function must be proper.
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": {
"numerator": "<numerator>",
"denominator": "<denominator>",
"sample_time": "<sample_time>"
},
"name": "control_discretize"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| method | No | 'zoh' (default), 'foh', 'tustin', 'forward_euler', 'backward_euler' or 'matched' | zoh |
| numerator | Yes | Numerator polynomial: JSON list of coefficients in DESCENDING powers, e.g. '[1, 3]' for s+3, or text such as 's + 3'. | |
| denominator | Yes | Denominator polynomial, same formats, e.g. '[1, 3, 2]' or 's^2 + 3 s + 2'. The leading coefficient must not be 0. Order at most 40, coefficients 1e-12..1e12 in magnitude. | |
| sample_time | Yes | Sample time with unit, e.g. '0.1 s' (1e-9 s .. 1e9 s) | |
| prewarp_frequency | No | Tustin only: prewarp frequency in rad/s (0 = none); must be below pi/T |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| data | No | Non-quantity payload (reports, listings) | |
| error | No | ||
| value | No | Primary quantity result | |
| values | No | All named quantity results (includes the primary) | |
| warnings | No | ||
| artifacts | No | ||
| provenance | Yes | What produced the result and from which inputs. | |
| review_status | No | unreviewed |