Input Data for Matrix Calculators

Now all matrix calculators support both real and complex matrices. To ensure that the browser loads the lastest calculators, it should be refreshed or reloaded. Please send any comments and/or found bugs/errors to, last updated: May 27, 2016

All matrix calculators require that the matrix entries must be entered as below.

Only matrix entries are entered and are in the form

1st row of matrix
2nd row of matrix
last row of matrix

The number of rows of the matrix is determined from the number of non-empty lines of the input and the number of columns is determined from the number of entries in the first row.

At least one white space is required to separate each matrix entry. Matrices can be copied and pasted or manually edited in the text area.

Valid matrix entries are real numbers like 1, 2/3, -34.15, 2.0e-3 or complex numbers in the form a+b*i like 2+3*i, 4, 5*i. Note that complex entries must not contain space. The matrix entries can also be input as mathematical expressions like sin(0.5), exp(pi), 1/2+1/3, 2^3, (2+3*i)^5, exp(1-i). All supported math functions for both real and complex are list in the table below.

Since spaces are used as the matrix entry separator, matrix entries must not contain space. For examples, 2+3*i and sin(0.5) are valid input but 2 +3 *i, sin( 0.5 ) are not because they contain spaces. Here is an example of valid input for matrix calculators.

sin(pi/2)   -2    3+i  
5-i       2^3  -1   
log(10^3)  1     1/2+2/4   

As all matrix entries are evaluated before they are passed to matrix calculators we can use some matrix calculators like transpose calculator or trace calculator (with one entry) as scientific calculators. Note that the first calculator transpose the evaluated values if the number of entries are greater than one. For example, enter 1/2+exp(pi)-sqrt(e) in the transpose or trace calculators we get the output 21.9920. And enter (1+sqrt(5))/2 4*atan(1) in the transpose calculator we get the output

i.e. (1+sqrt(5))/2 = 1.6180 and 4*atan(1) = 3.14.16. In the case of evaluating complex math expression, the transpose calculator both transpose and take complex conjugate the results. For example enter (2+3*i)^2 in the calculator we get -5-12*i as the output. Taking complex conjugate of the output, we get -5+12*i which is the value of (2+3*i)^2

All math functions in table below support both real and complex entries.

eA constant e=2.718281828459045-
piA constant pi=3.141592653589793-
iA constant $i=\sqrt{-1}$2+3*i
absabs(x) the absolute value of xabs(-2)
sqrtsqrt(x) the square root of xsqrt(2+5*i)
powpow(x,y) the power of x to y, the same as x^ypow(3,2) or 3^2
expexp(x) the base-e exponential function of xexp(3)
loglog(x) the natural logarithm of xlog(2)
sinsin(x) the sine of xsin(1.5)
coscos(x) the cosine of xcos(1.5)
tantan(x) the tangent of xtan(1.5)
asinasin(x) the inverse sine of xasin(0.5)
acosacos(x) the inverse cosine of xacos(0.5)
atanatan(x) the inverse tangent of xatan(0.5)
sinhsinh(x) the hyperbolic sine of xsinh(0.5)
coshcosh(x) the hyperbolic cosine of xcosh(0.5)
tanhtanh(x) the hyperbolic tangent of xtanh(0.5)