diff options
| author | Paul Eggert | 2013-06-20 07:15:42 -0700 |
|---|---|---|
| committer | Paul Eggert | 2013-06-20 07:15:42 -0700 |
| commit | 89561f72e587677618afa2fd6962704e841e39e8 (patch) | |
| tree | 9b790c6b916c853df24a72eebd505c38501ccec6 /doc | |
| parent | 47199123698df3a14acb016c3869075b2d6012d5 (diff) | |
| download | emacs-89561f72e587677618afa2fd6962704e841e39e8.tar.gz emacs-89561f72e587677618afa2fd6962704e841e39e8.zip | |
Add log2 support and make log10 obsolete for consistency.
* configure.ac (log2): Check for this function.
* doc/lispref/numbers.texi (Math Functions): Remove obsolete function log10.
* lisp/subr.el (log10): Move here from C code, and declare as obsolete.
All uses of (log10 X) replaced with (log X 10).
* src/floatfns.c (Flog) [HAVE_LOG2]: Use log2 if available and if the
base is 2; this is more accurate.
(Flog10): Move to Lisp (marked obsolete there).
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/lispref/ChangeLog | 4 | ||||
| -rw-r--r-- | doc/lispref/numbers.texi | 5 |
2 files changed, 4 insertions, 5 deletions
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog index 65fc76d15f5..c00d3392908 100644 --- a/doc/lispref/ChangeLog +++ b/doc/lispref/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2013-06-20 Paul Eggert <eggert@cs.ucla.edu> | ||
| 2 | |||
| 3 | * numbers.texi (Math Functions): Remove obsolete function log10. | ||
| 4 | |||
| 1 | 2013-06-19 Stefan Monnier <monnier@iro.umontreal.ca> | 5 | 2013-06-19 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 6 | ||
| 3 | * modes.texi (Mode Line Data, Properties in Mode): Advertise `keymap' | 7 | * modes.texi (Mode Line Data, Properties in Mode): Advertise `keymap' |
diff --git a/doc/lispref/numbers.texi b/doc/lispref/numbers.texi index eeebac6bf72..2b6f31b670b 100644 --- a/doc/lispref/numbers.texi +++ b/doc/lispref/numbers.texi | |||
| @@ -1156,11 +1156,6 @@ This function returns the logarithm of @var{arg}, with base | |||
| 1156 | returns a NaN. | 1156 | returns a NaN. |
| 1157 | @end defun | 1157 | @end defun |
| 1158 | 1158 | ||
| 1159 | @defun log10 arg | ||
| 1160 | This function returns the logarithm of @var{arg}, with base 10: | ||
| 1161 | @code{(log10 @var{x})} @equiv{} @code{(log @var{x} 10)}. | ||
| 1162 | @end defun | ||
| 1163 | |||
| 1164 | @defun expt x y | 1159 | @defun expt x y |
| 1165 | This function returns @var{x} raised to power @var{y}. If both | 1160 | This function returns @var{x} raised to power @var{y}. If both |
| 1166 | arguments are integers and @var{y} is positive, the result is an | 1161 | arguments are integers and @var{y} is positive, the result is an |