matrix_multiplication
Multiply two matrices with 64-bit floating-point precision using nested list inputs. Ensure compatible dimensions for accurate results. Supports fractions for individual elements.
Instructions
Multiplies two matrices with 64 bit floating point precision and returns the result as a matrix. You need to provide them in the format of nested lists. For example, [[1, 2], [3, 4]] would represent a 2x2 matrix. Each sub list represents a row in the matrix, and each element in the sub list represents a column. The matrices must be compatible for multiplication, meaning the number of columns in the first matrix must equal the number of rows in the second matrix. You can also use fractions for individual elements if you want to, like [1/2, 1/3, 1/4].
Input Schema
Name | Required | Description | Default |
---|---|---|---|
matrix_1 | Yes | ||
matrix_2 | Yes |