General mathematics library