diff options
author | Jay Belanger <jay.p.belanger@gmail.com> | 2015-09-15 19:53:06 -0500 |
---|---|---|
committer | Jay Belanger <jay.p.belanger@gmail.com> | 2015-09-15 19:53:06 -0500 |
commit | 2667d5c7fbaa3de8103488c7e3779eb768f9d15c (patch) | |
tree | 664c1b4571ea9cd67cb7b5ab50d7f73fadc82746 /lisp/calc/calc-menu.el | |
parent | fa856144b7b6b4d90f48f862f88ed7cc8b40ca6f (diff) | |
download | emacs-2667d5c7fbaa3de8103488c7e3779eb768f9d15c.tar.gz |
Add new functions for the root mean square of a (Calc) vector
* lisp/calc/calc-stats.el (calcFunc-rms, calc-vector-rms):
New functions.
* lisp/calc/calc-ext.el (calc-init-extensions): Add keybinding for
`calc-vector-rms', add autoloads for `calc-vector-rms' and
`calcFunc-rms'.
* lisp/calc/calc-map.el (calc-u-oper-keys): Add entry for
`calcFunc-rms'.
* lisp/calc/calc-menu.el (calc-vectors-menu): Add entry for
`calc-vector-rms'.
* doc/misc/calc.texi (Single-Variable Statistics): Document the rms
command.
Diffstat (limited to 'lisp/calc/calc-menu.el')
-rw-r--r-- | lisp/calc/calc-menu.el | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lisp/calc/calc-menu.el b/lisp/calc/calc-menu.el index 44086872dd0..8610090c5d1 100644 --- a/lisp/calc/calc-menu.el +++ b/lisp/calc/calc-menu.el @@ -863,6 +863,13 @@ :keys "I u M" :active (>= (calc-stack-size) 1) :help "The average (arithmetic mean) of the data values as an error form"] + ["rms(1:)" + (progn + (require 'calc-stat) + (call-interactively 'calc-vector-rms)) + :keys "u R" + :active (>= (calc-stack-size) 1) + :help "The root mean square of the data values"] ["sdev(1:)" (progn (require 'calc-stat) |