www.gusucode.com > symbolic工具箱matlab源码程序 > symbolic/@sym/lambertw.m

    function W = lambertw(k,X)
%LAMBERTW Lambert's W function.
%   W = LAMBERTW(X) is the solution to w*exp(w) = x.
%   W = LAMBERTW(K,X) is the K-th branch of this multi-valued function.
%   Reference: Robert M. Corless, G. H. Gonnet, D. E. G. Hare,
%   D. J. Jeffrey, and D. E. Knuth, "On the Lambert W Function",
%   Advances in Computational Mathematics, volume 5, 1996, pp. 329-359.

%   More information available from:
%   http://www.apmaths.uwo.ca/~rcorless/frames/PAPERS/LambertW

%   Copyright 2013 The MathWorks, Inc.

if nargin == 1
    X = k;
    k = sym(0);
end
W = privBinaryOp(k, X, 'symobj::vectorizeSpecfunc', 'symobj::lambertw', '-infinity');
end