solve equations, matrix inversion and so on