Computer methods for mathematical computations