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 Fri 22-May-2009 15:13:00 by m2html © 2003