mathematical function programs