-
Notifications
You must be signed in to change notification settings - Fork 13
Add routine 'ln' to core as an alias for 'log_e' (the natural logarithm) #474
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
The Here's what R's R: Logarithms and Exponentials
Logarithms and ExponentialsDescription
Usagelog(x, base = exp(1)) logb(x, base = exp(1)) log10(x) log2(x) log1p(x) exp(x) expm1(x) Arguments
DetailsAll except
All except ValueA vector of the same length as For complex inputs to the log functions, the value is a complex number with imaginary part in the range [-pi, pi]: which end of the range is used might be platform-specific. S4 methods
Note that this means that the S4 generic for Source
ReferencesBecker, R. A., Chambers, J. M. and Wilks, A. R. (1988)
The New S Language.
Wadsworth & Brooks/Cole.
(for Chambers, J. M. (1998)
Programming with Data. A Guide to the S Language.
Springer. (for See Also
Exampleslog(exp(3)) log10(1e7) # = 7 x <- 10^-(1+2*1:9) cbind(x, log(1+x), log1p(x), exp(x)-1, expm1(x)) [Package base version 3.4.1 Index]
https://web.mit.edu/r/current/lib/R/library/base/html/Log.html |
We have named versions of routine 'log_x' for bases x=2 and x=10 ('log2' and 'log10') which were added after the Christmas release.
It would complete the common set of bases used by scientists and engineers to add routine 'ln' as an alias for 'log_e'. Such a routine would not conflict with any currently exposed routine names.
Note that Wolfram Math has an 'ln' routine.
The text was updated successfully, but these errors were encountered: