Mercurial > emacs
comparison lisp/calc/calc-ext.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 |
---|---|
545 (define-key calc-mode-map "ub" 'calc-base-units) | 545 (define-key calc-mode-map "ub" 'calc-base-units) |
546 (define-key calc-mode-map "uc" 'calc-convert-units) | 546 (define-key calc-mode-map "uc" 'calc-convert-units) |
547 (define-key calc-mode-map "ud" 'calc-define-unit) | 547 (define-key calc-mode-map "ud" 'calc-define-unit) |
548 (define-key calc-mode-map "ue" 'calc-explain-units) | 548 (define-key calc-mode-map "ue" 'calc-explain-units) |
549 (define-key calc-mode-map "ug" 'calc-get-unit-definition) | 549 (define-key calc-mode-map "ug" 'calc-get-unit-definition) |
550 (define-key calc-mode-map "ul+" 'calc-luplus) | |
551 (define-key calc-mode-map "ul-" 'calc-luminus) | |
552 (define-key calc-mode-map "ull" 'calc-level) | |
553 (define-key calc-mode-map "ul?" 'calc-ul-prefix-help) | |
550 (define-key calc-mode-map "up" 'calc-permanent-units) | 554 (define-key calc-mode-map "up" 'calc-permanent-units) |
551 (define-key calc-mode-map "ur" 'calc-remove-units) | 555 (define-key calc-mode-map "ur" 'calc-remove-units) |
552 (define-key calc-mode-map "us" 'calc-simplify-units) | 556 (define-key calc-mode-map "us" 'calc-simplify-units) |
553 (define-key calc-mode-map "ut" 'calc-convert-temperature) | 557 (define-key calc-mode-map "ut" 'calc-convert-temperature) |
554 (define-key calc-mode-map "uu" 'calc-undefine-unit) | 558 (define-key calc-mode-map "uu" 'calc-undefine-unit) |
928 calc-store-value calc-var-name) | 932 calc-store-value calc-var-name) |
929 | 933 |
930 ("calc-stuff" calc-explain-why calcFunc-clean | 934 ("calc-stuff" calc-explain-why calcFunc-clean |
931 calcFunc-pclean calcFunc-pfloat calcFunc-pfrac) | 935 calcFunc-pclean calcFunc-pfloat calcFunc-pfrac) |
932 | 936 |
933 ("calc-units" calcFunc-usimplify | 937 ("calc-units" calcFunc-usimplify calcFunc-luplus |
938 calcFunc-luminus calcFunc-fieldlevel calcFunc-powerlevel | |
934 math-build-units-table math-build-units-table-buffer | 939 math-build-units-table math-build-units-table-buffer |
935 math-check-unit-name math-convert-temperature math-convert-units | 940 math-check-unit-name math-convert-temperature math-convert-units |
936 math-extract-units math-remove-units math-simplify-units | 941 math-extract-units math-remove-units math-simplify-units |
937 math-single-units-in-expr-p math-to-standard-units | 942 math-single-units-in-expr-p math-to-standard-units |
938 math-units-in-expr-p) | 943 math-units-in-expr-p) |
1045 calc-describe-key-briefly calc-describe-variable calc-f-prefix-help | 1050 calc-describe-key-briefly calc-describe-variable calc-f-prefix-help |
1046 calc-full-help calc-g-prefix-help calc-help-prefix | 1051 calc-full-help calc-g-prefix-help calc-help-prefix |
1047 calc-hyperbolic-prefix-help calc-inv-hyp-prefix-help calc-option-prefix-help | 1052 calc-hyperbolic-prefix-help calc-inv-hyp-prefix-help calc-option-prefix-help |
1048 calc-inverse-prefix-help calc-j-prefix-help calc-k-prefix-help | 1053 calc-inverse-prefix-help calc-j-prefix-help calc-k-prefix-help |
1049 calc-m-prefix-help calc-r-prefix-help calc-s-prefix-help | 1054 calc-m-prefix-help calc-r-prefix-help calc-s-prefix-help |
1050 calc-t-prefix-help calc-u-prefix-help calc-v-prefix-help) | 1055 calc-t-prefix-help calc-u-prefix-help calc-ul-prefix-help |
1056 calc-v-prefix-help) | |
1051 | 1057 |
1052 ("calc-incom" calc-begin-complex calc-begin-vector calc-comma | 1058 ("calc-incom" calc-begin-complex calc-begin-vector calc-comma |
1053 calc-dots calc-end-complex calc-end-vector calc-semi) | 1059 calc-dots calc-end-complex calc-end-vector calc-semi) |
1054 | 1060 |
1055 ("calc-keypd" calc-keypad-menu calc-keypad-menu-back | 1061 ("calc-keypd" calc-keypad-menu calc-keypad-menu-back |
1159 ("calc-units" calc-autorange-units calc-base-units | 1165 ("calc-units" calc-autorange-units calc-base-units |
1160 calc-convert-temperature calc-convert-units calc-define-unit | 1166 calc-convert-temperature calc-convert-units calc-define-unit |
1161 calc-enter-units-table calc-explain-units calc-extract-units | 1167 calc-enter-units-table calc-explain-units calc-extract-units |
1162 calc-get-unit-definition calc-permanent-units calc-quick-units | 1168 calc-get-unit-definition calc-permanent-units calc-quick-units |
1163 calc-remove-units calc-simplify-units calc-undefine-unit | 1169 calc-remove-units calc-simplify-units calc-undefine-unit |
1164 calc-view-units-table) | 1170 calc-view-units-table calc-luplus calc-luminus calc-level) |
1165 | 1171 |
1166 ("calc-vec" calc-arrange-vector calc-build-vector calc-cnorm | 1172 ("calc-vec" calc-arrange-vector calc-build-vector calc-cnorm |
1167 calc-conj-transpose calc-cons calc-cross calc-kron calc-diag | 1173 calc-conj-transpose calc-cons calc-cross calc-kron calc-diag |
1168 calc-display-strings calc-expand-vector calc-grade calc-head | 1174 calc-display-strings calc-expand-vector calc-grade calc-head |
1169 calc-histogram calc-ident calc-index calc-mask-vector calc-mcol | 1175 calc-histogram calc-ident calc-index calc-mask-vector calc-mcol |