www.gusucode.com > elfun工具箱matlab源码程序 > elfun/expm1.m
%EXPM1 Compute EXP(X)-1 accurately. % EXPM1(X) computes EXP(X)-1, compensating for the roundoff in EXP(X). % % For small real X, EXPM1(X) should be approximately X, whereas the % computed value of EXP(X)-1 can be zero or have high relative error. % % See also EXP, LOG1P. % Copyright 1984-2011 The MathWorks, Inc. % Built-in function.