Home > freetb4matlab > elfun > lcm.m

lcm

PURPOSE ^

% Compute the least common multiple of the elements of @var{x}, or

SYNOPSIS ^

function l = lcm (varargin)

DESCRIPTION ^

% -*- texinfo -*-
% @deftypefn  {Mapping Function} {} lcm (@var{x})
% @deftypefnx {Mapping Function} {} lcm (@var{x}, @dots{})
% Compute the least common multiple of the elements of @var{x}, or
% of the list of all arguments.  For example,
%
% @example
% lcm (a1, @dots{}, ak)
% @end example
%
% @noindent
% is the same as
%
% @example
% lcm ([a1, @dots{}, ak]).
% @end example
%
% All elements must be the same size or scalar.
% @seealso{factor, gcd}
% @end deftypefn

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Sat 16-May-2009 00:04:49 by m2html © 2003