Determining if a Function is Linear