omni_matrix_multiplication
Calculate 2×2 matrix determinant, trace, inverse, characteristic polynomial, and eigenvalues from four entries, eliminating manual arithmetic errors with deterministic results.
Instructions
2×2 Matrix Determinant & Inverse Calculator. Calculate 2×2 matrix determinant det(A), matrix trace, matrix inverse A⁻¹, characteristic polynomial, and eigenvalues. Discipline: CALCULUS. Governing mathematical model / formula: det(A) = ad - bc | A⁻¹ = [1 / det(A)] · [ [d, -b], [-c, a] ].
USAGE GUIDELINES:
WHEN TO USE: Invoke for deterministic calculation of matrix_det (Determinant det(A)), matrix_trace (Matrix Trace tr(A)), inverse_row1 (Inverse Row 1 [d/det, -b/det]), inverse_row2 (Inverse Row 2 [-c/det, a/det]) using elem_a (Element a (Row 1, Col 1)), elem_b (Element b (Row 1, Col 2)), elem_c (Element c (Row 2, Col 1)), elem_d (Element d (Row 2, Col 2)). Guarantees exact machine floating-point precision, eliminating LLM arithmetic mistakes and formula hallucinations.
WHEN NOT TO USE: Do not use for qualitative evaluations or unquantified reasoning. All input parameters must be valid numerical values.
SIBLING ROUTING: Use this dedicated specialist tool for '2×2 Matrix Determinant & Inverse Calculator' rather than generic dispatchers like omni_universal_query. For cross-discipline dynamic dispatch, see omni_universal_query.
BEHAVIOR & SAFETY:
Pure deterministic computation with machine floating-point precision.
Read-only, idempotent, and stateless. Zero side effects or persistent state mutations.
Input validation: All arguments are validated against physical and domain bounds. Out-of-bounds inputs return a safe diagnostic error status without throwing runtime exceptions.
RETURNS:
Structured JSON object containing:
status (string): "success" on valid execution or "error" if validation fails
calculator (string): "matrix-multiplication"
category (string): "calculus"
name (string): "2×2 Matrix Determinant & Inverse Calculator"
formula (string): Governing mathematical formula string
inputs (object): Echoed input parameter dictionary with applied defaults
metrics (object): Dictionary of computed outputs:
metrics.matrix_det (Determinant det(A)): Formatted display string (e.g. '10.0000 (Invertible)')
metrics.matrix_trace (Matrix Trace tr(A)): Formatted display string (e.g. '10.0000')
metrics.inverse_row1 (Inverse Row 1 [d/det, -b/det]): Formatted display string (e.g. '[0.6000, -0.7000]')
metrics.inverse_row2 (Inverse Row 2 [-c/det, a/det]): Formatted display string (e.g. '[-0.2000, 0.4000]')
execution_time_ms (number): Latency in milliseconds.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "omni_matrix_multiplication"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| elem_a | No | Element a (Row 1, Col 1). Top-left entry. Default: 4. Min: -1000. Max: 1000. | |
| elem_b | No | Element b (Row 1, Col 2). Top-right entry. Default: 7. Min: -1000. Max: 1000. | |
| elem_c | No | Element c (Row 2, Col 1). Bottom-left entry. Default: 2. Min: -1000. Max: 1000. | |
| elem_d | No | Element d (Row 2, Col 2). Bottom-right entry. Default: 6. Min: -1000. Max: 1000. |