%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%                                                     %%
%%                  The exact solution                 %%
%%       of the one-dimensional Poisson equation       %%
%%                                                     %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

function u_vals = gf1d_u_exa(x_vals)

% evaluate the exact solution
u_vals=.5*sqrt(pi)*erf(x_vals);
