function v=eqn1d(t,x)
% eqn1d(t,x) evaluates the string expression in the global variable 
% parameter at the passed values of t and x.

global parameter
v=eval(parameter);
% M. Day, June 5, 2005; May 6, 2012