diff options
| author | Jay Belanger | 2005-02-19 15:59:53 +0000 |
|---|---|---|
| committer | Jay Belanger | 2005-02-19 15:59:53 +0000 |
| commit | eb1ef4557d6d591d6d81dc236e58ce84849cbada (patch) | |
| tree | ce2a33c0678f5a3e5eddcc0fcad4445d3d056211 | |
| parent | 0e0d5683812fe9d4b77355291e9efd8ed8873d64 (diff) | |
| download | emacs-eb1ef4557d6d591d6d81dc236e58ce84849cbada.tar.gz emacs-eb1ef4557d6d591d6d81dc236e58ce84849cbada.zip | |
(calc-arctan, calc-tanh, calc-arctanh): Removed extra definitions.
(calc-coth): New function.
(calcFunc-cot): Fix `let'.
| -rw-r--r-- | lisp/calc/calc-math.el | 19 |
1 files changed, 4 insertions, 15 deletions
diff --git a/lisp/calc/calc-math.el b/lisp/calc/calc-math.el index d2c66c34d49..ffb7644cdfe 100644 --- a/lisp/calc/calc-math.el +++ b/lisp/calc/calc-math.el | |||
| @@ -236,21 +236,10 @@ | |||
| 236 | (calc-unary-op "coth" 'calcFunc-coth arg) | 236 | (calc-unary-op "coth" 'calcFunc-coth arg) |
| 237 | (calc-unary-op "cot" 'calcFunc-cot arg)))) | 237 | (calc-unary-op "cot" 'calcFunc-cot arg)))) |
| 238 | 238 | ||
| 239 | (defun calc-arctan (arg) | 239 | (defun calc-coth (arg) |
| 240 | (interactive "P") | ||
| 241 | (calc-invert-func) | ||
| 242 | (calc-tan arg)) | ||
| 243 | |||
| 244 | (defun calc-tanh (arg) | ||
| 245 | (interactive "P") | 240 | (interactive "P") |
| 246 | (calc-hyperbolic-func) | 241 | (calc-hyperbolic-func) |
| 247 | (calc-tan arg)) | 242 | (calc-cot arg)) |
| 248 | |||
| 249 | (defun calc-arctanh (arg) | ||
| 250 | (interactive "P") | ||
| 251 | (calc-invert-func) | ||
| 252 | (calc-hyperbolic-func) | ||
| 253 | (calc-tan arg)) | ||
| 254 | 243 | ||
| 255 | (defun calc-arctan2 () | 244 | (defun calc-arctan2 () |
| 256 | (interactive) | 245 | (interactive) |
| @@ -991,11 +980,11 @@ | |||
| 991 | (or (math-with-extra-prec 2 | 980 | (or (math-with-extra-prec 2 |
| 992 | (let* ((xx (math-to-radians (math-float x))) | 981 | (let* ((xx (math-to-radians (math-float x))) |
| 993 | (na (math-floor (math-div (nth 2 xx) (math-pi)))) | 982 | (na (math-floor (math-div (nth 2 xx) (math-pi)))) |
| 994 | (nb (math-floor (math-div (nth 3 xx) (math-pi)))) | 983 | (nb (math-floor (math-div (nth 3 xx) (math-pi))))) |
| 995 | (and (equal na nb) | 984 | (and (equal na nb) |
| 996 | (math-sort-intv (nth 1 x) | 985 | (math-sort-intv (nth 1 x) |
| 997 | (math-cot-raw (nth 2 xx)) | 986 | (math-cot-raw (nth 2 xx)) |
| 998 | (math-cot-raw (nth 3 xx))))))) | 987 | (math-cot-raw (nth 3 xx)))))) |
| 999 | '(intv 3 (neg (var inf var-inf)) (var inf var-inf)))) | 988 | '(intv 3 (neg (var inf var-inf)) (var inf var-inf)))) |
| 1000 | ((equal x '(var nan var-nan)) | 989 | ((equal x '(var nan var-nan)) |
| 1001 | x) | 990 | x) |