MATLAB COMPILER RELEASE NOTES User's Guide Page 199

  • Download
  • Add to my manuals
  • Print
  • Page
    / 264
  • Table of contents
  • TROUBLESHOOTING
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 198
reallog
7-21
7reallog
Purpose Natural logarithm for nonnegative real inputs.
Syntax Y = reallog(X)
Description reallog is an elementary function that operates element-wise on matrices.
reallog returns the natural logarithm of X. The domain of reallog is the set
of all nonnegative real numbers. If
X is negative or complex,reallog issues an
error message.
reallog is similar to the MATLAB log function;however, the domainof log is
much broader than the domain of
reallog. The domain of log includes all real
and all complex numbers. If
Y is real, you should use reallog rather than log
for two reasons.
First,subsequent accessof
Y may execute moreefficientlyif Y iscalculatedwith
reallog rather than with log.Usingreallog forces the MATLAB Compiler to
impute a real type to
X andY.Usinglog typicallyforcestheMATLAB Compiler
to impute a complex type to
Y.
Second, the compiled version of
reallog may run somewhat faster than the
compiledversionof
log. (However,the interpretedversio n of reallog may r un
somewhat slower than the interpreted version of
log.)
See Also exp, log, log2, logm, log10, realpow, realsqrt
Page view 198
1 2 ... 194 195 196 197 198 199 200 201 202 203 204 ... 263 264

Comments to this Manuals

No comments