The matrix sign function and computations in systems