matrix_operations
Compute matrix operations including addition, multiplication, transpose, and determinant. Provide matrices as JSON arrays of arrays.
Instructions
Perform matrix operations: add, multiply, transpose, determinant.
Parameters:
operation — Operation: 'add', 'multiply', 'transpose', 'determinant'.
matrix_a — JSON array of arrays (e.g. '[[1,2],[3,4]]').
matrix_b — Second matrix for add/multiply (optional).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| operation | Yes | ||
| matrix_a | Yes | ||
| matrix_b | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |