*** Mathematical functions ***
