coding_theory_operation
Compute error-correcting code parameters—length, dimension, minimum distance, rate, and generator matrix—for Hamming and generalized Reed-Solomon codes.
Instructions
Error-correcting codes: length, dimension, minimum distance, rate and generator matrix for Hamming and generalized Reed-Solomon codes. Prefer this over evaluate_sage for code parameters.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session | No | Workspace to use, as a name or a portable handle. Workspaces have independent variables. A name is scoped to this MCP session; a handle returned by start_sage_session (workspace_token) reaches the same workspace across reconnects and is a bearer credential -- keep it secret. Omit for 'default'. | default |
| code_type | Yes | Code constructor, e.g. 'HammingCode(GF(2),3)', 'GeneralizedReedSolomonCode(GF(7).list()[:6],3)' | |
| operation | Yes | One of: length, dimension, minimum_distance, generator_matrix, rate |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||