]> git.eshelyaron.com Git - emacs.git/commit
Avoid ln(10) expression in calc units definition
authorUlrich Müller <ulm@gentoo.org>
Sat, 1 Feb 2025 22:10:53 +0000 (23:10 +0100)
committerEshel Yaron <me@eshelyaron.com>
Sun, 9 Feb 2025 08:00:39 +0000 (09:00 +0100)
commitb59605d932855d9a04566907c8223ad33feae9a3
treeeee67026a8e71807fa3de362b018871dab253d96
parent18d907c0a7785284973d669d8f874d4a1450c939
Avoid ln(10) expression in calc units definition

* lisp/calc/calc-ext.el (calc-init-extensions): Autoload calc-math
for math-ln-10.
* lisp/calc/calc-units.el (math-standard-units): Use new ln10
constant instead of ln(10) in the decibel definition.
(math-find-base-units-rec): Allow ln10 in expression.
(math-to-standard-rec): Recognize the ln10 constant.  (Bug#75861)

(cherry picked from commit 1639ad2814ae100c9f878a1388eb9ffc9d208b07)
lisp/calc/calc-ext.el
lisp/calc/calc-units.el