]> gitweb.michael.orlitzky.com - octave.git/blob - c_norm.m
Add an octaverc which modifies the load path and improved MATLAB compatibility.
[octave.git] / c_norm.m
1 function c_norm = c_norm(w, a, b, v)
2 ##
3 ## The norm on C[a,b] induced by c_inner_product.
4 ##
5 ## INPUT:
6 ##
7 ## * ``w`` -- The weight function.
8 ##
9 ## * ``a`` -- The left endpoint of the interval.
10 ##
11 ## * ``b`` -- The right endpoint of the interval.
12 ##
13 ## * ``v`` -- The vector.
14 ##
15 ## OUTPUT:
16 ##
17 ## The norm of `v`; that is, the inner product sqrt(<v, v>).
18 ##
19 c_norm = sqrt(c_inner_product(w, a, b, v, v));
20 end