3 % compute the infinity-norm error between two Dof vectors.
5 % This
function computing the infinity norm error between the two fv-functions
6 % or
function sequences in
'U1,U2': `\|u_1 - u_2\|_{L^\infty(\Omega)}`.
7 % Actually, the parameters
'grid' and
'params' are currently superfluous, but
8 % kept
for consistency of
function line arguments.
11 % U1 : first vector of Dofs of
function `u_1`
12 % U2 : second vector of Dofs of
function `u_2`
13 % W : superfluous argument kept
for compatibility with
fv_l2_error().
16 % linfty_error: a single value or sequence of values corresponding to the
17 % column-differences between
'U1' and
'U2'
19 % Bernard Haasdonk 28.2.2008
21 % linfty_error = sqrt(sum(((U1-U2).^2).*repmat(grid.A(:),1,size(U1,2))));
22 linfty_error = max(abs(U1-U2));
function linfty_error = fv_linfty_error(U1, U2, W)
compute the infinity-norm error between two Dof vectors.
function l2_error = fv_l2_error(U1, U2, W)
function computing the l2-error between the two fv-functions or function sequences in U1...