diff lisp/calc/calc.el @ 112453:06719a229a46 default tip

* calc/calc.el (calc-default-power-reference-level) (calc-default-field-reference-level): New variables. * calc/calc-units.el (math-standard-units): Add dB and Np. (math-logunits): New variable. (math-extract-logunits, math-logcombine, calcFunc-luplus) (calcFunc-luminus, calc-luplus, calc-luminus, math-logunit-level) (calcFunc-fieldlevel, calcFunc-powerlevel, calc-level): New functions. (math-find-base-units-rec): Add entry for ln(10). * calc/calc-help.el (calc-u-prefix-help): Add logarithmic help. (calc-ul-prefix-help): New function. * calc/calc-ext.el (calc-init-extensions): Autoload new units functions. Add keybindings for new units functions.
author Jay Belanger <jay.p.belanger@gmail.com>
date Sun, 23 Jan 2011 23:08:04 -0600
parents 23a54fb18e67
children
line wrap: on
line diff
--- a/lisp/calc/calc.el	Sun Jan 23 20:55:10 2011 -0800
+++ b/lisp/calc/calc.el	Sun Jan 23 23:08:04 2011 -0600
@@ -435,6 +435,19 @@
   :group 'calc
   :type 'boolean)
 
+(defcustom calc-default-field-reference-level
+  "20 uPa"
+  "The default reference level for logarithmic units (field)."
+  :group 'calc
+  :type '(string))
+
+(defcustom calc-default-power-reference-level
+  "mW"
+  "The default reference level for logarithmic units (power)."
+  :group 'calc
+  :type '(string))
+
+
 (defface calc-nonselected-face
   '((t :inherit shadow       
        :slant italic))