The documentation is live and interactive powered by the klipse plugin:
mathlab
from the mathlab github repository (It might take a couple of seconds...):
Object.keys(mathlab)
inv
calculates the inverse of a matrix.
mathlab.inv([[1,2],[3,4]])
And here is what happens when the matrix is not invertible:
mathlab.inv([[1,2],[1,2]])
dot
calculates the dot product of a matrix.
mathlab.dot([[1, 1], [2, 1]], [1, 2])