How to Input Mathematical Expressions and Special Symbols in Matrix Calculator
Updated
Matrix Calculator (matrixcalc.org) accepts more than plain numbers in each cell. You can type decimal fractions, full mathematical expressions, matrix literals, named functions, constants like pi and e, and units like rad and deg directly into the input fields. Type the value or expression into a matrix cell and click the operation button — the calculator parses the expression before computing. This works for both matrix A and matrix B, and for the expression-based input modes such as A*X=B.
What you can type into a cell
The calculator's own help text lists four categories of accepted input.
Numbers and fractions
| Format | Example | Notes |
|---|---|---|
| Decimal | 3.14, -1.3 |
Standard decimal notation |
| Finite or periodic fraction | 1/3, -1.3(56) |
Parentheses mark the repeating part |
| Scientific notation | 1.2e-4 |
e here is the exponent marker |
Mathematical expressions
You can enter a whole expression instead of a single value, for example 2/3+3*(10-4) or (1+x)/y^2. Supported operators include +, -, *, /, \, !, ^, ^{*}, and comparison signs such as ≠, =, ⩾, ⩽, >, <. Separators , and ; are also recognized.
Matrix literals
A matrix can be written inline with curly braces: {{1,3},{4,5}}. Each inner brace pair is a row. This is useful in the expression input modes, for example {{1,2,3},{4,5,6},{7,2,9}}^(-1).
Functions, constants, and units
- Functions:
sqrt,cbrt,exp,log,abs,conjugate,arg,min,max,gcd,rank,adjugate,inverse,determinant,transpose,pseudoinverse,trace, and the trigonometric/hyperbolic families (cos,sin,tan,cot,cosh,sinh,tanh,coth, and theirarc/arinverses), plusderivative,factor, andresultant. - Constants:
pi,e,i. - Integers:
k,n. - Identity matrix:
IorE. - Matrix symbols:
X,Y. - Units:
rad,deg— for examplecos(3.142rad).
Step-by-step: entering an expression
- Click into a cell of Matrix A (or Matrix B).
- Type the expression, e.g.
2^0.5orsin(phi). - Move between cells with
Enter,Space, or the arrow keys; delete withBackspaceorDelete. - Leave extra cells empty if you need a non-square matrix.
- Click the operation button (Determinant, Inverse, Transpose, Rank, Multiply by, Row echelon form, Diagonal matrix, To the power of, LU decomposition, Cholesky decomposition, and so on).
Expected result: the calculator evaluates the expression first, then applies the operation. For example, entering {{1,2,3},{4,5,6},{7,2,9}}^(-1) returns the inverse of that 3×3 matrix.
Practical tips
- Powers and roots: use
^for powers (2^0.5for √2,2^(1/3)for a cube root) or thesqrt/cbrtfunctions. - Copy and paste:
Ctrl/Cmd + CandCtrl/Cmd + Vwork for matrices, and you can drag-and-drop matrices from the results or between the calculator and a text editor. - Display precision: the interface lets you set the number of fraction digits and the number of significant digits for the output.
- Cleaning input: the
↶ Cleancontrol clears the current input.
Common sticking points
- Repeating decimals need the parentheses form
-1.3(56), not a plain decimal. eis overloaded: in1.2e-4it is scientific notation, while standaloneeis Euler's constant.- Units matter for trig:
cos(3.142rad)andcos(3.142deg)give different results, so state the unit when it isn't radians by default. - Non-square matrices: leave the unused cells empty rather than filling them with zeros.