www.gusucode.com > symbolic 源码程序 matlab案例代码 > symbolic/LambertWPlotOfTheTwoMainBranchesExample.m
%% Plot Two Main Branches % Plot the two main branches, $W_0(x)$ and $W_{-1}(x)$, of the Lambert W % function. %% % Plot the principal branch $W_0(x)$. Add the branch $W_{-1}(x)$. Adjust % the axes limits and add the title. syms x fplot(lambertw(x)) hold on fplot(lambertw(-1, x)) axis([-0.5, 4, -4, 2]) title('Lambert W function, two main branches')