diff options
| author | Jay Belanger | 2007-07-07 23:57:23 +0000 |
|---|---|---|
| committer | Jay Belanger | 2007-07-07 23:57:23 +0000 |
| commit | fd8eab36a0573a5ccc2d0bd020703f0e3e79bbba (patch) | |
| tree | ed7b41620c6daa837d6468407abdff5b97c5aec6 | |
| parent | 4b4b19bdd598a2ba991162829921bc2e7e8d5083 (diff) | |
| download | emacs-fd8eab36a0573a5ccc2d0bd020703f0e3e79bbba.tar.gz emacs-fd8eab36a0573a5ccc2d0bd020703f0e3e79bbba.zip | |
(math-approx-pi,math-approx-sqrt-e,math-approx-gamma-const):
Add docstrings.
| -rw-r--r-- | lisp/calc/calc-ext.el | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/lisp/calc/calc-ext.el b/lisp/calc/calc-ext.el index 2816941f87a..65383df308c 100644 --- a/lisp/calc/calc-ext.el +++ b/lisp/calc/calc-ext.el | |||
| @@ -1925,9 +1925,11 @@ calc-kill calc-kill-region calc-yank)))) | |||
| 1925 | (put 'math-defcache 'lisp-indent-hook 2) | 1925 | (put 'math-defcache 'lisp-indent-hook 2) |
| 1926 | 1926 | ||
| 1927 | ;;; Betcha didn't know that pi = 16 atan(1/5) - 4 atan(1/239). [F] [Public] | 1927 | ;;; Betcha didn't know that pi = 16 atan(1/5) - 4 atan(1/239). [F] [Public] |
| 1928 | (defconst math-approx-pi | 1928 | (defconst math-approx-pi |
| 1929 | (eval-when-compile | 1929 | (eval-when-compile |
| 1930 | (math-read-number-simple "3.141592653589793238463"))) | 1930 | (math-read-number-simple "3.141592653589793238463")) |
| 1931 | "An approximation for pi.") | ||
| 1932 | |||
| 1931 | (math-defcache math-pi math-approx-pi | 1933 | (math-defcache math-pi math-approx-pi |
| 1932 | (math-add-float (math-mul-float '(float 16 0) | 1934 | (math-add-float (math-mul-float '(float 16 0) |
| 1933 | (math-arctan-raw '(float 2 -1))) | 1935 | (math-arctan-raw '(float 2 -1))) |
| @@ -1960,7 +1962,8 @@ calc-kill calc-kill-region calc-yank)))) | |||
| 1960 | (math-sqrt-float (math-two-pi))) | 1962 | (math-sqrt-float (math-two-pi))) |
| 1961 | 1963 | ||
| 1962 | (defconst math-approx-sqrt-e | 1964 | (defconst math-approx-sqrt-e |
| 1963 | (eval-when-compile (math-read-number-simple "1.648721270700128146849"))) | 1965 | (eval-when-compile (math-read-number-simple "1.648721270700128146849")) |
| 1966 | "An approximation for sqrt(3).") | ||
| 1964 | 1967 | ||
| 1965 | (math-defcache math-sqrt-e math-approx-sqrt-e | 1968 | (math-defcache math-sqrt-e math-approx-sqrt-e |
| 1966 | (math-add-float '(float 1 0) (math-exp-minus-1-raw '(float 5 -1)))) | 1969 | (math-add-float '(float 1 0) (math-exp-minus-1-raw '(float 5 -1)))) |
| @@ -1975,7 +1978,8 @@ calc-kill calc-kill-region calc-yank)))) | |||
| 1975 | (defconst math-approx-gamma-const | 1978 | (defconst math-approx-gamma-const |
| 1976 | (eval-when-compile | 1979 | (eval-when-compile |
| 1977 | (math-read-number-simple | 1980 | (math-read-number-simple |
| 1978 | "0.5772156649015328606065120900824024310421593359399235988057672348848677267776646709369470632917467495"))) | 1981 | "0.5772156649015328606065120900824024310421593359399235988057672348848677267776646709369470632917467495")) |
| 1982 | "An approximation for gamma.") | ||
| 1979 | 1983 | ||
| 1980 | (math-defcache math-gamma-const nil | 1984 | (math-defcache math-gamma-const nil |
| 1981 | math-approx-gamma-const) | 1985 | math-approx-gamma-const) |