Correct the F vector. Use "arange" instead of linspace.