revise linspace double comparision.