Define A Function Mathematically Correct