comparison 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
comparison
equal deleted inserted replaced
112452:b8a360ee54f1 112453:06719a229a46
432 by displaying the rest of the formula in `calc-nonselected-face'. 432 by displaying the rest of the formula in `calc-nonselected-face'.
433 If `calc-show-selections' is nil, then selected sub-formulas are shown 433 If `calc-show-selections' is nil, then selected sub-formulas are shown
434 by displaying the sub-formula in `calc-selected-face'." 434 by displaying the sub-formula in `calc-selected-face'."
435 :group 'calc 435 :group 'calc
436 :type 'boolean) 436 :type 'boolean)
437
438 (defcustom calc-default-field-reference-level
439 "20 uPa"
440 "The default reference level for logarithmic units (field)."
441 :group 'calc
442 :type '(string))
443
444 (defcustom calc-default-power-reference-level
445 "mW"
446 "The default reference level for logarithmic units (power)."
447 :group 'calc
448 :type '(string))
449
437 450
438 (defface calc-nonselected-face 451 (defface calc-nonselected-face
439 '((t :inherit shadow 452 '((t :inherit shadow
440 :slant italic)) 453 :slant italic))
441 "Face used to show the non-selected portion of a formula." 454 "Face used to show the non-selected portion of a formula."