My own mathematics functions