# HG changeset patch # User Rik # Date 1272913737 25200 # Node ID 38eae0c3a003453b88ede0970de9bcc22ff7421a # Parent 3ce0c530a9c91f556a852af18b13d97c5ecfe7ba Add TeX equation to cond.m documentation diff --git a/scripts/ChangeLog b/scripts/ChangeLog --- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,3 +1,7 @@ +2010-05-02 Rik + + * linear-algebra/cond.m: Add TeX equation to documentation + 2010-05-02 Peter van den Biggelaar * plot/close.m: No error on "close([])". diff --git a/scripts/linear-algebra/cond.m b/scripts/linear-algebra/cond.m --- a/scripts/linear-algebra/cond.m +++ b/scripts/linear-algebra/cond.m @@ -18,12 +18,21 @@ ## . ## -*- texinfo -*- -## @deftypefn {Function File} {} cond (@var{a},@var{p}) +## @deftypefn {Function File} {} cond (@var{a}) +## @deftypefnx {Function File} {} cond (@var{a},@var{p}) ## Compute the @var{p}-norm condition number of a matrix. @code{cond (@var{a})} is -## defined as @code{norm (@var{a}, @var{p}) * norm (inv (@var{a}), @var{p})}. -## By default @code{@var{p}=2} is used which implies a (relatively slow) +## defined as +## @tex +## $ {\parallel a \parallel_p * \parallel a^{-1} \parallel_p .} $ +## @end tex +## @ifnottex +## @code{norm (@var{a}, @var{p}) * norm (inv (@var{a}), @var{p})}. +## @end ifnottex +## +## By default @code{@var{p} = 2} is used which implies a (relatively slow) ## singular value decomposition. Other possible selections are -## @code{@var{p}= 1, Inf, inf, 'Inf', 'fro'} which are generally faster. +## @code{@var{p} = 1, Inf, "inf", "fro"} which are generally faster. See +## @code{norm} for a full discussion of possible @var{p} values. ## @seealso{condest, rcond, norm, svd} ## @end deftypefn