rbmatlab  1.16.09
 All Classes Namespaces Files Functions Variables Modules Pages
fv_linfty_error.m
Go to the documentation of this file.
1 function linfty_error = fv_linfty_error(U1,U2,W)
2 %function linfty_error = fv_linfty_error(U1,U2,W)
3 % compute the infinity-norm error between two Dof vectors.
4 %
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.
9 %
10 % parameters:
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().
14 %
15 % return values:
16 % linfty_error: a single value or sequence of values corresponding to the
17 % column-differences between 'U1' and 'U2'
18 
19 % Bernard Haasdonk 28.2.2008
20 
21 % linfty_error = sqrt(sum(((U1-U2).^2).*repmat(grid.A(:),1,size(U1,2))));
22 linfty_error = max(abs(U1-U2));
23 
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...
Definition: fv_l2_error.m:17