Home > freetb4matlab > general > safeprod.m

safeprod

PURPOSE ^

% This function forms product(s) of elements of the array @var{x} along the dimension

SYNOPSIS ^

function [p, e] = safeprod (x, dim)

DESCRIPTION ^

% -*- texinfo -*-
% @deftypefn{Function File} {@var{p} =} safeprod (@var{x}, @var{dim})
% @deftypefnx{Function File} {[@var{p}, @var{e}] =} safeprod (@var{x}, @var{dim})
% This function forms product(s) of elements of the array @var{x} along the dimension 
% specified by @var{dim}, analogically to @code{prod}, but avoids overflows and underflows 
% if possible. If called with 2 output arguments, @var{p} and @var{e} are computed 
% so that the product is @code{@var{p} * 2^@var{e}}.
% @seealso{prod,log2}
% @end deftypefn

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Fri 22-May-2009 15:13:00 by m2html © 2003