function r = expand(s)
%EXPAND Symbolic expansion.
%   EXPAND(S) writes each element of a symbolic expression S as a
%   product of its factors.  EXPAND is most often used on polynomials,
%   but also expands trigonometric, exponential and logarithmic functions.
%
%   Examples:
%      v = [exp(x + y) log(x^2/y)]
%      expand((x+1)^3)   returns  x^3+3*x^2+3*x+1
%      expand(sin(x+y))  returns  sin(x)*cos(y)+cos(x)*sin(y)
%      expand(v)         returns  [exp(x)*exp(y), 2*log(x)-log(y)]
%
%   See also SIMPLIFY, SIMPLE, FACTOR, COLLECT.

%   Copyright (c) 1993-98 by The MathWorks, Inc.
%   $Revision: 1.10 $  $Date: 1997/11/29 01:05:36 $

r = maple('map','expand',s);
