Library Function For Math Definition