Maybe you changed the value of the variable ORIGIN to something else than the default value 0. If you did, you also must use that value here. Type ORIGIN instead of "0" and you are on the safe side.
BTW, the definition of the range x does not make any sense for any of the calculations done. The only use for this variable x would be when plotting.