sphinx math working