% This is the input function that is called 
% by nonlinear.m.  It takes t as the input
% and calculates u for that t.
%
% In this example, u = at^2 + bt + c for t < 0.5
% and u = 3t + 1 for t >= 0.5
%

function u=inp(t)

a = 1;
b = 2;
c = 1.5;


if t < 0.5,
u = a*t^2 + b*t + c;
else
u = 3*t + 1;
end;

u 

return































