X-Git-Url: http://gitweb.michael.orlitzky.com/?p=octave.git;a=blobdiff_plain;f=c_norm.m;fp=c_norm.m;h=865ff8b472a566b0dfd3f5237939b575206352ea;hp=0000000000000000000000000000000000000000;hb=79707c807c6f44eb95ec0eeeaa28f7e98bf8c319;hpb=6f4b337984a4abff81123a14496a59f9f4a0351d diff --git a/c_norm.m b/c_norm.m new file mode 100644 index 0000000..865ff8b --- /dev/null +++ b/c_norm.m @@ -0,0 +1,20 @@ +function c_norm = c_norm(w, a, b, v) + ## + ## The norm on C[a,b] induced by c_inner_product. + ## + ## INPUT: + ## + ## * ``w`` -- The weight function. + ## + ## * ``a`` -- The left endpoint of the interval. + ## + ## * ``b`` -- The right endpoint of the interval. + ## + ## * ``v`` -- The vector. + ## + ## OUTPUT: + ## + ## The norm of `v`; that is, the inner product sqrt(). + ## + c_norm = sqrt(c_inner_product(w, a, b, v, v)); +end