annotate lisp/calc/calc-menu.el @ 95457:415f68458e61

Implement face-remapping-alist feature Revision: emacs@sv.gnu.org/emacs--devo--0--patch-1195
author Miles Bader <miles@gnu.org>
date Sun, 01 Jun 2008 05:04:24 +0000
parents 6c9af2bfcfee
children a9dc0e7c3f2b
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
92270
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1 ;;; calc-menu.el --- a menu for Calc
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
2
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
3 ;; Copyright (C) 2007, 2008 Free Software Foundation, Inc.
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
4
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
5 ;; Maintainer: Jay Belanger <jay.p.belanger@gmail.com>
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
6
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
7 ;; This file is part of GNU Emacs.
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
8
94654
6c9af2bfcfee Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents: 92270
diff changeset
9 ;; GNU Emacs is free software: you can redistribute it and/or modify
92270
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
10 ;; it under the terms of the GNU General Public License as published by
94654
6c9af2bfcfee Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents: 92270
diff changeset
11 ;; the Free Software Foundation, either version 3 of the License, or
6c9af2bfcfee Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents: 92270
diff changeset
12 ;; (at your option) any later version.
92270
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
13
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
14 ;; GNU Emacs is distributed in the hope that it will be useful,
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
15 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
16 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
17 ;; GNU General Public License for more details.
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
18
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
19 ;; You should have received a copy of the GNU General Public License
94654
6c9af2bfcfee Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents: 92270
diff changeset
20 ;; along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
92270
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
21
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
22 ;;; Commentary:
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
23
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
24 (defvar calc-arithmetic-menu
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
25 (list "Arithmetic"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
26 (list "Basic"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
27 ["-(1:)" calc-change-sign
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
28 :keys "n" :active (>= (calc-stack-size) 1)]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
29 ["(2:) + (1:)" calc-plus
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
30 :keys "+" :active (>= (calc-stack-size) 2)]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
31 ["(2:) - (1:)" calc-minus
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
32 :keys "-" :active (>= (calc-stack-size) 2)]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
33 ["(2:) * (1:)" calc-times
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
34 :keys "*" :active (>= (calc-stack-size) 2)]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
35 ["(2:) / (1:)" calc-divide
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
36 :keys "/" :active (>= (calc-stack-size) 2)]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
37 ["(2:) ^ (1:)" calc-power
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
38 :keys "^" :active (>= (calc-stack-size) 2)]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
39 ["(2:) ^ (1/(1:))"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
40 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
41 (require 'calc-ext)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
42 (let ((calc-inverse-flag t))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
43 (call-interactively 'calc-power)))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
44 :keys "I ^"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
45 :active (>= (calc-stack-size) 2)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
46 :help "The (1:)th root of (2:)"]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
47 ["abs(1:)"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
48 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
49 (require 'calc-arith)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
50 (call-interactively 'calc-abs))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
51 :keys "A"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
52 :active (>= (calc-stack-size) 1)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
53 :help "Absolute value"]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
54 ["1/(1:)"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
55 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
56 (require 'calc-arith)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
57 (call-interactively 'calc-inv))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
58 :keys "&"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
59 :active (>= (calc-stack-size) 1)]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
60 ["sqrt(1:)"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
61 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
62 (require 'calc-math)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
63 (call-interactively 'calc-sqrt))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
64 :keys "Q"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
65 :active (>= (calc-stack-size) 1)]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
66 ["idiv(2:,1:)"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
67 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
68 (require 'calc-arith)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
69 (call-interactively 'calc-idiv))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
70 :keys "\\"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
71 :active (>= (calc-stack-size) 2)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
72 :help "The integer quotient of (2:) over (1:)"]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
73 ["(2:) mod (1:)"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
74 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
75 (require 'calc-misc)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
76 (call-interactively 'calc-mod))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
77 :keys "%"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
78 :active (>= (calc-stack-size) 2)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
79 :help "The remainder when (2:) is divided by (1:)"])
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
80 (list "Rounding"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
81 ["floor(1:)"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
82 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
83 (require 'calc-arith)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
84 (call-interactively 'calc-floor))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
85 :keys "F"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
86 :active (>= (calc-stack-size) 1)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
87 :help "The greatest integer less than or equal to (1:)"]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
88 ["ceiling(1:)"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
89 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
90 (require 'calc-arith)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
91 (call-interactively 'calc-ceiling))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
92 :keys "I F"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
93 :active (>= (calc-stack-size) 1)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
94 :help "The smallest integer greater than or equal to (1:)"]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
95 ["round(1:)"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
96 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
97 (require 'calc-arith)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
98 (call-interactively 'calc-round))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
99 :keys "R"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
100 :active (>= (calc-stack-size) 1)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
101 :help "The nearest integer to (1:)"]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
102 ["truncate(1:)"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
103 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
104 (require 'calc-arith)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
105 (call-interactively 'calc-trunc))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
106 :keys "I R"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
107 :active (>= (calc-stack-size) 1)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
108 :help "The integer part of (1:)"])
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
109 (list "Complex Numbers"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
110 ["Re(1:)"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
111 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
112 (require 'calc-cplx)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
113 (call-interactively 'calc-re))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
114 :keys "f r"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
115 :active (>= (calc-stack-size) 1)]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
116 ["Im(1:)"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
117 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
118 (require 'calc-cplx)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
119 (call-interactively 'calc-im))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
120 :keys "f i"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
121 :active (>= (calc-stack-size) 1)]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
122 ["conj(1:)"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
123 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
124 (require 'calc-cplx)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
125 (call-interactively 'calc-conj))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
126 :keys "J"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
127 :active (>= (calc-stack-size) 1)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
128 :help "The complex conjugate of (1:)"]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
129 ["length(1:)"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
130 (progn (require 'calc-arith)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
131 (call-interactively 'calc-abs))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
132 :keys "A"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
133 :active (>= (calc-stack-size) 1)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
134 :help "The length (absolute value) of (1:)"]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
135 ["arg(1:)"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
136 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
137 (require 'calc-cplx)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
138 (call-interactively 'calc-argument))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
139 :keys "G"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
140 :active (>= (calc-stack-size) 1)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
141 :help "The argument (polar angle) of (1:)"])
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
142 (list "Conversion"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
143 ["Convert (1:) to a float"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
144 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
145 (require 'calc-ext)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
146 (call-interactively 'calc-float))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
147 :keys "c f"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
148 :active (>= (calc-stack-size) 1)]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
149 ["Convert (1:) to a fraction"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
150 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
151 (require 'calc-ext)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
152 (call-interactively 'calc-fraction))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
153 :keys "c F"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
154 :active (>= (calc-stack-size) 1)])
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
155 (list "Binary"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
156 ["Set word size"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
157 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
158 (require 'calc-bin)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
159 (call-interactively 'calc-word-size))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
160 :keys "b w"]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
161 ["Clip (1:) to word size"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
162 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
163 (require 'calc-bin)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
164 (call-interactively 'calc-clip))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
165 :keys "b c"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
166 :active (>= (calc-stack-size) 1)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
167 :help "Reduce (1:) modulo 2^wordsize"]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
168 ["(2:) and (1:)"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
169 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
170 (require 'calc-bin)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
171 (call-interactively 'calc-and))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
172 :keys "b a"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
173 :active (>= (calc-stack-size) 2)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
174 :help "Bitwise AND [modulo 2^wordsize]"]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
175 ["(2:) or (1:)"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
176 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
177 (require 'calc-bin)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
178 (call-interactively 'calc-or))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
179 :keys "b o"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
180 :active (>= (calc-stack-size) 2)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
181 :help "Bitwise inclusive OR [modulo 2^wordsize]"]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
182 ["(2:) xor (1:)"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
183 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
184 (require 'calc-bin)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
185 (call-interactively 'calc-xor))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
186 :keys "b x"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
187 :active (>= (calc-stack-size) 2)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
188 :help "Bitwise exclusive OR [modulo 2^wordsize]"]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
189 ["diff(2:,1:)"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
190 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
191 (require 'calc-bin)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
192 (call-interactively 'calc-diff))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
193 :keys "b d"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
194 :active (>= (calc-stack-size) 2)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
195 :help "Bitwise difference [modulo 2^wordsize]"]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
196 ["not (1:)"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
197 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
198 (require 'calc-bin)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
199 (call-interactively 'calc-not))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
200 :keys "b n"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
201 :active (>= (calc-stack-size) 1)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
202 :help "Bitwise NOT [modulo 2^wordsize]"]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
203 ["left shift(1:)"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
204 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
205 (require 'calc-bin)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
206 (call-interactively 'calc-lshift-binary))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
207 :keys "b l"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
208 :active (>= (calc-stack-size) 1)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
209 :help "Shift (1:)[modulo 2^wordsize] one bit left"]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
210 ["right shift(1:)"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
211 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
212 (require 'calc-bin)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
213 (call-interactively 'calc-rshift-binary))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
214 :keys "b r"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
215 :active (>= (calc-stack-size) 1)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
216 :help "Shift (1:)[modulo 2^wordsize] one bit right, putting 0s on the left"]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
217 ["arithmetic right shift(1:)"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
218 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
219 (require 'calc-bin)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
220 (call-interactively 'calc-rshift-arith))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
221 :keys "b R"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
222 :active (>= (calc-stack-size) 1)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
223 :help "Shift (1:)[modulo 2^wordsize] one bit right, duplicating the leftmost bit"]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
224 ["rotate(1:)"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
225 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
226 (require 'calc-bin)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
227 (call-interactively 'calc-rotate-binary))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
228 :keys "b t"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
229 :active (>= (calc-stack-size) 1)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
230 :help "Rotate (1:)[modulo 2^wordsize] one bit left"])
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
231 "-------"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
232 ["Help on Arithmetic"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
233 (calc-info-goto-node "Arithmetic")])
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
234 "Menu for Calc's arithmetic functions.")
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
235
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
236 (defvar calc-scientific-function-menu
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
237 (list "Scientific Functions"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
238 (list "Constants"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
239 ["pi"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
240 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
241 (require 'calc-math)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
242 (call-interactively 'calc-pi))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
243 :keys "P"]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
244 ["e"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
245 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
246 (require 'calc-math)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
247 (let ((calc-hyperbolic-flag t))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
248 (call-interactively 'calc-pi)))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
249 :keys "H P"]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
250 ["phi"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
251 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
252 (require 'calc-math)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
253 (let ((calc-inverse-flag t)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
254 (calc-hyperbolic-flag t))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
255 (call-interactively 'calc-pi)))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
256 :keys "I H P"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
257 :help "The golden ratio"]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
258 ["gamma"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
259 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
260 (require 'calc-math)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
261 (let ((calc-inverse-flag t))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
262 (call-interactively 'calc-pi)))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
263 :keys "I P"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
264 :help "Euler's constant"])
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
265 (list "Logs and Exps"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
266 ["ln(1:)"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
267 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
268 (require 'calc-math)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
269 (call-interactively 'calc-ln))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
270 :keys "L"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
271 :active (>= (calc-stack-size) 1)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
272 :help "The natural logarithm"]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
273 ["e^(1:)"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
274 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
275 (require 'calc-math)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
276 (call-interactively 'calc-exp))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
277 :keys "E"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
278 :active (>= (calc-stack-size) 1)]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
279 ["log(1:) [base 10]"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
280 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
281 (require 'calc-math)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
282 (call-interactively 'calc-log10))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
283 :keys "H L"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
284 :active (>= (calc-stack-size) 1)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
285 :help "The common logarithm"]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
286 ["10^(1:)"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
287 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
288 (require 'calc-math)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
289 (let ((calc-inverse-flag t))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
290 (call-interactively 'calc-log10)))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
291 :keys "I H L"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
292 :active (>= (calc-stack-size) 1)]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
293 ["log(2:) [base(1:)]"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
294 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
295 (require 'calc-math)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
296 (call-interactively 'calc-log))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
297 :keys "B"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
298 :active (>= (calc-stack-size) 2)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
299 :help "The logarithm with an arbitrary base"]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
300 ["(2:) ^ (1:)"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
301 calc-power
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
302 :keys "^"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
303 :active (>= (calc-stack-size) 2)])
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
304 (list "Trigonometric Functions"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
305 ["sin(1:)"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
306 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
307 (require 'calc-math)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
308 (call-interactively 'calc-sin))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
309 :keys "S"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
310 :active (>= (calc-stack-size) 1)]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
311 ["cos(1:)"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
312 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
313 (require 'calc-math)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
314 (call-interactively 'calc-cos))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
315 :keys "C"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
316 :active (>= (calc-stack-size) 1)]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
317 ["tan(1:)"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
318 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
319 (require 'calc-math)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
320 (call-interactively 'calc-tan))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
321 :keys "T"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
322 :active (>= (calc-stack-size) 1)]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
323 ["arcsin(1:)"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
324 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
325 (require 'calc-math)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
326 (call-interactively 'calc-arcsin))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
327 :keys "I S"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
328 :active (>= (calc-stack-size) 1)]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
329 ["arccos(1:)"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
330 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
331 (require 'calc-math)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
332 (call-interactively 'calc-arccos))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
333 :keys "I C"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
334 :active (>= (calc-stack-size) 1)]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
335 ["arctan(1:)"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
336 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
337 (require 'calc-math)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
338 (call-interactively 'calc-arctan))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
339 :keys "I T"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
340 :active (>= (calc-stack-size) 1)]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
341 ["arctan2(2:,1:)"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
342 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
343 (require 'calc-math)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
344 (call-interactively 'calc-arctan2))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
345 :keys "f T"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
346 :active (>= (calc-stack-size) 2)]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
347 "--Angle Measure--"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
348 ["Radians"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
349 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
350 (require 'calc-math)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
351 (calc-radians-mode))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
352 :keys "m r"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
353 :style radio
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
354 :selected (eq calc-angle-mode 'rad)]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
355 ["Degrees"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
356 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
357 (require 'calc-math)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
358 (calc-degrees-mode))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
359 :keys "m d"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
360 :style radio
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
361 :selected (eq calc-angle-mode 'deg)]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
362 ["HMS"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
363 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
364 (require 'calc-math)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
365 (calc-hms-mode))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
366 :keys "m h"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
367 :style radio
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
368 :selected (eq calc-angle-mode 'hms)])
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
369 (list "Hyperbolic Functions"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
370 ["sinh(1:)"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
371 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
372 (require 'calc-math)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
373 (call-interactively 'calc-sinh))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
374 :keys "H S"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
375 :active (>= (calc-stack-size) 1)]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
376 ["cosh(1:)"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
377 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
378 (require 'calc-math)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
379 (call-interactively 'calc-cosh))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
380 :keys "H C"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
381 :active (>= (calc-stack-size) 1)]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
382 ["tanh(1:)"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
383 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
384 (require 'calc-math)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
385 (call-interactively 'calc-tanh))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
386 :keys "H T"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
387 :active (>= (calc-stack-size) 1)]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
388 ["arcsinh(1:)"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
389 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
390 (require 'calc-math)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
391 (call-interactively 'calc-arcsinh))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
392 :keys "I H S"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
393 :active (>= (calc-stack-size) 1)]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
394 ["arccosh(1:)"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
395 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
396 (require 'calc-math)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
397 (call-interactively 'calc-arccosh))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
398 :keys "I H C"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
399 :active (>= (calc-stack-size) 1)]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
400 ["arctanh(1:)"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
401 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
402 (require 'calc-math)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
403 (call-interactively 'calc-arctanh))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
404 :keys "I H T"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
405 :active (>= (calc-stack-size) 1)])
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
406 (list "Advanced Math Functions"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
407 ["Gamma(1:)"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
408 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
409 (require 'calc-comb)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
410 (call-interactively 'calc-gamma))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
411 :keys "f g"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
412 :active (>= (calc-stack-size) 1)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
413 :help "The Euler Gamma function"]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
414 ["GammaP(2:,1:)"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
415 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
416 (require 'calc-funcs)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
417 (call-interactively 'calc-inc-gamma))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
418 :keys "f G"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
419 :active (>= (calc-stack-size) 2)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
420 :help "The lower incomplete Gamma function"]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
421 ["Beta(2:,1:)"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
422 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
423 (require 'calc-funcs)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
424 (call-interactively 'calc-beta))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
425 :keys "f b"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
426 :active (>= (calc-stack-size) 2)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
427 :help "The Euler Beta function"]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
428 ["BetaI(3:,2:,1:)"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
429 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
430 (require 'calc-funcs)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
431 (call-interactively 'calc-inc-beta))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
432 :keys "f B"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
433 :active (>= (calc-stack-size) 3)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
434 :help "The incomplete Beta function"]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
435 ["erf(1:)"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
436 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
437 (require 'calc-funcs)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
438 (call-interactively 'calc-erf))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
439 :keys "f e"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
440 :active (>= (calc-stack-size) 1)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
441 :help "The error function"]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
442 ["BesselJ(2:,1:)"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
443 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
444 (require 'calc-funcs)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
445 (call-interactively 'calc-bessel-J))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
446 :keys "f j"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
447 :active (>= (calc-stack-size) 2)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
448 :help "The Bessel function of the first kind (of order (2:))"]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
449 ["BesselY(2:,1:)"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
450 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
451 (require 'calc-funcs)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
452 (call-interactively 'calc-bessel-Y))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
453 :keys "f y"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
454 :active (>= (calc-stack-size) 2)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
455 :help "The Bessel function of the second kind (of order (2:))"])
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
456 (list "Combinatorial Functions"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
457 ["gcd(2:,1:)"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
458 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
459 (require 'calc-comb)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
460 (call-interactively 'calc-gcd))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
461 :keys "k g"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
462 :active (>= (calc-stack-size) 2)]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
463 ["lcm(2:,1:)"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
464 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
465 (require 'calc-comb)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
466 (call-interactively 'calc-lcm))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
467 :keys "k l"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
468 :active (>= (calc-stack-size) 2)]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
469 ["factorial(1:)"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
470 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
471 (require 'calc-comb)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
472 (call-interactively 'calc-factorial))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
473 :keys "!"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
474 :active (>= (calc-stack-size) 1)]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
475 ["(2:) choose (1:)"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
476 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
477 (require 'calc-comb)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
478 (call-interactively 'calc-choose))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
479 :keys "k c"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
480 :active (>= (calc-stack-size) 2)]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
481 ["permutations(2:,1:)"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
482 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
483 (require 'calc-comb)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
484 (call-interactively 'calc-perm))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
485 :keys "H k c"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
486 :active (>= (calc-stack-size) 2)]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
487 ["Primality test for (1:)"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
488 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
489 (require 'calc-comb)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
490 (call-interactively 'calc-prime-test))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
491 :keys "k p"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
492 :active (>= (calc-stack-size) 1)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
493 :help "For large (1:), a probabilistic test"]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
494 ["Factor (1:) into primes"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
495 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
496 (require 'calc-comb)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
497 (call-interactively 'calc-prime-factors))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
498 :keys "k f"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
499 :active (>= (calc-stack-size) 1)]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
500 ["Next prime after (1:)"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
501 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
502 (require 'calc-comb)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
503 (call-interactively 'calc-next-prime))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
504 :keys "k n"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
505 :active (>= (calc-stack-size) 1)]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
506 ["Previous prime before (1:)"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
507 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
508 (require 'calc-comb)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
509 (call-interactively 'calc-prev-prime))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
510 :keys "I k n"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
511 :active (>= (calc-stack-size) 1)]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
512 ["phi(1:)"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
513 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
514 (require 'calc-comb)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
515 (call-interactively 'calc-totient))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
516 :keys "k n"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
517 :active (>= (calc-stack-size) 1)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
518 :help "Euler's totient function"]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
519 ["random(1:)"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
520 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
521 (require 'calc-comb)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
522 (call-interactively 'calc-random))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
523 :keys "k r"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
524 :active (>= (calc-stack-size) 1)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
525 :help "A random number >=1 and < (1:)"])
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
526 "----"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
527 ["Help on Scientific Functions"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
528 (calc-info-goto-node "Scientific Functions")])
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
529 "Menu for Calc's scientific functions.")
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
530
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
531 (defvar calc-algebra-menu
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
532 (list "Algebra"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
533 (list "Simplification"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
534 ["Simplify (1:)"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
535 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
536 (require 'calc-alg)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
537 (call-interactively 'calc-simplify))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
538 :keys "a s"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
539 :active (>= (calc-stack-size) 1)]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
540 ["Simplify (1:) with extended rules"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
541 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
542 (require 'calc-alg)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
543 (call-interactively 'calc-simplify-extended))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
544 :keys "a e"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
545 :active (>= (calc-stack-size) 1)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
546 :help "Apply possibly unsafe simplifications"])
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
547 (list "Manipulation"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
548 ["Expand formula (1:)"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
549 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
550 (require 'calc-alg)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
551 (call-interactively 'calc-expand-formula))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
552 :keys "a \""
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
553 :active (>= (calc-stack-size) 1)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
554 :help "Expand (1:) into its defining formula, if possible"]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
555 ["Evaluate variables in (1:)"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
556 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
557 (require 'calc-ext)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
558 (call-interactively 'calc-evaluate))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
559 :keys "="
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
560 :active (>= (calc-stack-size) 1)]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
561 ["Make substitution in (1:)"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
562 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
563 (require 'calc-alg)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
564 (call-interactively 'calc-substitute))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
565 :keys "a b"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
566 :active (>= (calc-stack-size) 1)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
567 :help
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
568 "Substitute all occurrences of a sub-expression with a new sub-expression"])
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
569 (list "Polynomials"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
570 ["Factor (1:)"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
571 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
572 (require 'calc-alg)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
573 (call-interactively 'calc-factor))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
574 :keys "a f"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
575 :active (>= (calc-stack-size) 1)]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
576 ["Collect terms in (1:)"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
577 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
578 (require 'calc-alg)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
579 (call-interactively 'calc-collect))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
580 :keys "a c"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
581 :active (>= (calc-stack-size) 1)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
582 :help "Arrange as a polynomial in a given variable"]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
583 ["Expand (1:)"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
584 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
585 (require 'calc-alg)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
586 (call-interactively 'calc-expand))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
587 :keys "a x"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
588 :active (>= (calc-stack-size) 1)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
589 :help "Apply distributive law everywhere"]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
590 ["Find roots of (1:)"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
591 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
592 (require 'calcalg2)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
593 (call-interactively 'calc-poly-roots))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
594 :keys "a P"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
595 :active (>= (calc-stack-size) 1)])
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
596 (list "Calculus"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
597 ["Differentiate (1:)"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
598 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
599 (require 'calcalg2)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
600 (call-interactively 'calc-derivative))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
601 :keys "a d"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
602 :active (>= (calc-stack-size) 1)]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
603 ["Integrate (1:) [indefinite]"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
604 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
605 (require 'calcalg2)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
606 (call-interactively 'calc-integral))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
607 :keys "a i"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
608 :active (>= (calc-stack-size) 1)]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
609 ["Integrate (1:) [definite]"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
610 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
611 (require 'calcalg2)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
612 (let ((var (read-string "Integration variable: ")))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
613 (calc-tabular-command 'calcFunc-integ "Integration"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
614 "intg" nil var nil nil)))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
615 :keys "C-u a i"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
616 :active (>= (calc-stack-size) 1)]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
617 ["Integrate (1:) [numeric]"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
618 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
619 (require 'calcalg2)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
620 (call-interactively 'calc-num-integral))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
621 :keys "a I"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
622 :active (>= (calc-stack-size) 1)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
623 :help "Integrate using the open Romberg method"]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
624 ["Taylor expand (1:)"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
625 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
626 (require 'calcalg2)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
627 (call-interactively 'calc-taylor))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
628 :keys "a t"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
629 :active (>= (calc-stack-size) 1)]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
630 ["Minimize (2:) [initial guess = (1:)]"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
631 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
632 (require 'calcalg3)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
633 (call-interactively 'calc-find-minimum))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
634 :keys "a N"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
635 :active (>= (calc-stack-size) 2)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
636 :help "Find a local minimum"]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
637 ["Maximize (2:) [initial guess = (1:)]"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
638 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
639 (require 'calcalg3)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
640 (call-interactively 'calc-find-maximum))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
641 :keys "a X"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
642 :active (>= (calc-stack-size) 2)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
643 :help "Find a local maximum"])
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
644 (list "Solving"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
645 ["Solve equation (1:)"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
646 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
647 (require 'calcalg2)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
648 (call-interactively 'calc-solve-for))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
649 :keys "a S"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
650 :active (>= (calc-stack-size) 1)]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
651 ["Solve equation (2:) numerically [initial guess = (1:)]"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
652 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
653 (require 'calcalg3)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
654 (call-interactively 'calc-find-root))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
655 :keys "a R"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
656 :active (>= (calc-stack-size) 2)]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
657 ["Find roots of polynomial (1:)"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
658 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
659 (require 'calcalg2)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
660 (call-interactively 'calc-poly-roots))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
661 :keys "a P"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
662 :active (>= (calc-stack-size) 1)])
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
663 (list "Curve Fitting"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
664 ["Fit (1:)=[x values, y values] to a curve"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
665 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
666 (require 'calcalg3)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
667 (call-interactively 'calc-curve-fit))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
668 :keys "a F"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
669 :active (>= (calc-stack-size) 1)])
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
670 "----"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
671 ["Help on Algebra"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
672 (calc-info-goto-node "Algebra")])
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
673 "Menu for Calc's algebraic facilities.")
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
674
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
675
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
676 (defvar calc-graphics-menu
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
677 (list "Graphics"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
678 ["Graph 2D [(1:)= y values, (2:)= x values]"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
679 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
680 (require 'calc-graph)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
681 (call-interactively 'calc-graph-fast))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
682 :keys "g f"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
683 :active (>= (calc-stack-size) 2)]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
684 ["Graph 3D [(1:)= z values, (2:)= y values, (3:)= x values]"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
685 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
686 (require 'calc-graph)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
687 (call-interactively 'calc-graph-fast-3d))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
688 :keys "g F"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
689 :active (>= (calc-stack-size) 3)]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
690 "----"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
691 ["Help on Graphics"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
692 (calc-info-goto-node "Graphics")])
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
693 "Menu for Calc's graphics.")
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
694
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
695
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
696 (defvar calc-vectors-menu
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
697 (list "Matrices/Vectors"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
698 (list "Matrices"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
699 ["(2:) + (1:)" calc-plus
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
700 :keys "+" :active (>= (calc-stack-size) 2)]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
701 ["(2:) - (1:)" calc-minus
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
702 :keys "-" :active (>= (calc-stack-size) 2)]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
703 ["(2:) * (1:)" calc-times
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
704 :keys "*" :active (>= (calc-stack-size) 2)]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
705 ["(1:)^(-1)"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
706 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
707 (require 'calc-arith)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
708 (call-interactively 'calc-inv))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
709 :keys "&"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
710 :active (>= (calc-stack-size) 1)]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
711 ["Create an identity matrix"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
712 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
713 (require 'calc-vec)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
714 (call-interactively 'calc-ident))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
715 :keys "v i"]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
716 ["transpose(1:)"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
717 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
718 (require 'calc-vec)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
719 (call-interactively 'calc-transpose))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
720 :keys "v t"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
721 :active (>= (calc-stack-size) 1)]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
722 ["det(1:)"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
723 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
724 (require 'calc-mtx)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
725 (call-interactively 'calc-mdet))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
726 :keys "V D"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
727 :active (>= (calc-stack-size) 1)]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
728 ["trace(1:)"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
729 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
730 (require 'calc-mtx)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
731 (call-interactively 'calc-mtrace))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
732 :keys "V T"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
733 :active (>= (calc-stack-size) 1)]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
734 ["LUD decompose (1:)"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
735 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
736 (require 'calc-mtx)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
737 (call-interactively 'calc-mlud))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
738 :keys "V L"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
739 :active (>= (calc-stack-size) 1)]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
740 ["Extract a row from (1:)"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
741 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
742 (require 'calc-vec)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
743 (call-interactively 'calc-mrow))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
744 :keys "v r"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
745 :active (>= (calc-stack-size) 1)]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
746 ["Extract a column from (1:)"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
747 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
748 (require 'calc-vec)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
749 (call-interactively 'calc-mcol))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
750 :keys "v c"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
751 :active (>= (calc-stack-size) 1)])
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
752 (list "Vectors"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
753 ["Extract the first element of (1:)"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
754 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
755 (require 'calc-vec)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
756 (call-interactively 'calc-head))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
757 :keys "v h"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
758 :active (>= (calc-stack-size) 1)]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
759 ["Extract an element from (1:)"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
760 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
761 (require 'calc-vec)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
762 (call-interactively 'calc-mrow))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
763 :keys "v r"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
764 :active (>= (calc-stack-size) 1)]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
765 ["Reverse (1:)"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
766 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
767 (require 'calc-vec)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
768 (call-interactively 'calc-reverse-vector))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
769 :keys "v v"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
770 :active (>= (calc-stack-size) 1)]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
771 ["Unpack (1:)"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
772 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
773 (require 'calc-vec)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
774 (call-interactively 'calc-unpack))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
775 :keys "v u"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
776 :active (>= (calc-stack-size) 1)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
777 :help "Separate the elements of (1:)"]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
778 ["(2:) cross (1:)"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
779 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
780 (require 'calc-vec)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
781 (call-interactively 'calc-cross))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
782 :keys "V C"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
783 :active (>= (calc-stack-size) 2)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
784 :help "The cross product in R^3"]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
785 ["(2:) dot (1:)"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
786 calc-mult
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
787 :keys "*"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
788 :active (>= (calc-stack-size) 2)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
789 :help "The dot product"]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
790 ["Map a function across (1:)"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
791 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
792 (require 'calc-map)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
793 (call-interactively 'calc-map))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
794 :keys "V M"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
795 :active (>= (calc-stack-size) 1)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
796 :help "Apply a function to each element"])
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
797 (list "Vectors As Sets"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
798 ["Remove duplicates from (1:)"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
799 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
800 (require 'calc-vec)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
801 (call-interactively 'calc-remove-duplicates))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
802 :keys "V +"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
803 :active (>= (calc-stack-size) 1)]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
804 ["(2:) union (1:)"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
805 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
806 (require 'calc-vec)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
807 (call-interactively 'calc-set-union))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
808 :keys "V V"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
809 :active (>= (calc-stack-size) 2)]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
810 ["(2:) intersect (1:)"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
811 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
812 (require 'calc-vec)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
813 (call-interactively 'calc-set-intersect))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
814 :keys "V ^"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
815 :active (>= (calc-stack-size) 2)]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
816 ["(2:) \\ (1:)"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
817 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
818 (require 'calc-vec)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
819 (call-interactively 'calc-set-difference))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
820 :keys "V -"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
821 :help "Set difference"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
822 :active (>= (calc-stack-size) 2)])
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
823 (list "Statistics On Vectors"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
824 ["length(1:)"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
825 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
826 (require 'calc-stat)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
827 (call-interactively 'calc-vector-count))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
828 :keys "u #"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
829 :active (>= (calc-stack-size) 1)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
830 :help "The number of data values"]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
831 ["sum(1:)"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
832 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
833 (require 'calc-stat)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
834 (call-interactively 'calc-vector-sum))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
835 :keys "u +"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
836 :active (>= (calc-stack-size) 1)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
837 :help "The sum of the data values"]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
838 ["max(1:)"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
839 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
840 (require 'calc-stat)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
841 (call-interactively 'calc-vector-max))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
842 :keys "u x"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
843 :active (>= (calc-stack-size) 1)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
844 :help "The maximum of the data values"]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
845 ["min(1:)"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
846 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
847 (require 'calc-stat)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
848 (call-interactively 'calc-vector-min))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
849 :keys "u N"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
850 :active (>= (calc-stack-size) 1)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
851 :help "The minumum of the data values"]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
852 ["mean(1:)"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
853 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
854 (require 'calc-stat)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
855 (call-interactively 'calc-vector-mean))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
856 :keys "u M"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
857 :active (>= (calc-stack-size) 1)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
858 :help "The average (arithmetic mean) of the data values"]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
859 ["mean(1:) with error"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
860 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
861 (require 'calc-stat)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
862 (call-interactively 'calc-vector-mean-error))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
863 :keys "I u M"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
864 :active (>= (calc-stack-size) 1)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
865 :help "The average (arithmetic mean) of the data values as an error form"]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
866 ["sdev(1:)"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
867 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
868 (require 'calc-stat)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
869 (call-interactively 'calc-vector-sdev))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
870 :keys "u S"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
871 :active (>= (calc-stack-size) 1)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
872 :help "The sample sdev, sqrt[sum((values - mean)^2)/(N-1)]"]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
873 ["variance(1:)"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
874 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
875 (require 'calc-stat)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
876 (call-interactively 'calc-vector-variance))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
877 :keys "H u S"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
878 :active (>= (calc-stack-size) 1)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
879 :help "The sample variance, sum((values - mean)^2)/(N-1)"]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
880 ["population sdev(1:)"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
881 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
882 (require 'calc-stat)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
883 (call-interactively 'calc-vector-pop-sdev))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
884 :keys "I u S"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
885 :active (>= (calc-stack-size) 1)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
886 :help "The population sdev, sqrt[sum((values - mean)^2)/N]"]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
887 ["population variance(1:)"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
888 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
889 (require 'calc-stat)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
890 (call-interactively 'calc-vector-pop-variance))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
891 :keys "H I u S"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
892 :active (>= (calc-stack-size) 1)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
893 :help "The population variance, sum((values - mean)^2)/N"]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
894 ["median(1:)"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
895 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
896 (require 'calc-stat)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
897 (call-interactively 'calc-vector-median))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
898 :keys "H u M"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
899 :active (>= (calc-stack-size) 1)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
900 :help "The median of the data values"]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
901 ["harmonic mean(1:)"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
902 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
903 (require 'calc-stat)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
904 (call-interactively 'calc-vector-harmonic-mean))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
905 :keys "H I u M"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
906 :active (>= (calc-stack-size) 1)]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
907 ["geometric mean(1:)"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
908 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
909 (require 'calc-stat)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
910 (call-interactively 'calc-vector-geometric-mean))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
911 :keys "u G"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
912 :active (>= (calc-stack-size) 1)]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
913 ["arithmetic-geometric mean(1:)"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
914 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
915 (require 'calc-stat)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
916 (let ((calc-hyperbolic-flag t))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
917 (call-interactively 'calc-vector-geometric-mean)))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
918 :keys "H u G"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
919 :active (>= (calc-stack-size) 1)]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
920 ["RMS(1:)"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
921 (progn (require 'calc-arith)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
922 (call-interactively 'calc-abs))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
923 :keys "A"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
924 :active (>= (calc-stack-size) 1)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
925 :help "The root-mean-square, or quadratic mean"])
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
926 ["Abbreviate long vectors"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
927 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
928 (require 'calc-mode)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
929 (call-interactively 'calc-full-vectors))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
930 :keys "v ."
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
931 :style toggle
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
932 :selected (not calc-full-vectors)]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
933 "----"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
934 ["Help on Matrices/Vectors"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
935 (calc-info-goto-node "Matrix Functions")])
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
936 "Menu for Calc's vector and matrix functions.")
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
937
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
938 (defvar calc-units-menu
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
939 (list "Units"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
940 ["Convert units in (1:)"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
941 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
942 (require 'calc-units)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
943 (call-interactively 'calc-convert-units ))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
944 :keys "u c"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
945 :active (>= (calc-stack-size) 1)]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
946 ["Convert temperature in (1:)"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
947 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
948 (require 'calc-units)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
949 (call-interactively 'calc-convert-temperature))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
950 :keys "u t"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
951 :active (>= (calc-stack-size) 1)]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
952 ["Simplify units in (1:)"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
953 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
954 (require 'calc-units)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
955 (call-interactively 'calc-simplify-units))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
956 :keys "u s"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
957 :active (>= (calc-stack-size) 1)]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
958 ["View units table"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
959 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
960 (require 'calc-units)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
961 (call-interactively 'calc-view-units-table))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
962 :keys "u V"]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
963 "----"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
964 ["Help on Units"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
965 (calc-info-goto-node "Units")])
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
966 "Menu for Calc's units functions.")
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
967
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
968 (defvar calc-variables-menu
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
969 (list "Variables"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
970 ["Store (1:) into a variable"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
971 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
972 (require 'calc-store)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
973 (call-interactively 'calc-store))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
974 :keys "s s"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
975 :active (>= (calc-stack-size) 1)]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
976 ["Recall a variable value"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
977 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
978 (require 'calc-store)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
979 (call-interactively 'calc-recall ))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
980 :keys "s r"]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
981 ["Edit the value of a variable"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
982 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
983 (require 'calc-store)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
984 (call-interactively 'calc-edit-variable))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
985 :keys "s e"]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
986 ["Exchange (1:) with a variable value"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
987 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
988 (require 'calc-store)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
989 (call-interactively 'calc-store-exchange))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
990 :keys "s x"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
991 :active (>= (calc-stack-size) 1)]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
992 ["Clear variable value"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
993 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
994 (require 'calc-store)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
995 (call-interactively 'calc-unstore))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
996 :keys "s u"]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
997 ["Evaluate variables in (1:)"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
998 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
999 (require 'calc-ext)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1000 (call-interactively 'calc-evaluate))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1001 :keys "="
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1002 :active (>= (calc-stack-size) 1)]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1003 ["Evaluate (1:), assigning a value to a variable"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1004 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1005 (require 'calc-store)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1006 (call-interactively 'calc-let))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1007 :keys "s l"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1008 :active (>= (calc-stack-size) 1)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1009 :help "Evaluate (1:) under a temporary assignment of a variable"]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1010 "----"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1011 ["Help on Variables"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1012 (calc-info-goto-node "Store and Recall")])
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1013 "Menu for Calc's variables.")
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1014
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1015 (defvar calc-stack-menu
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1016 (list "Stack"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1017 ["Remove (1:)"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1018 calc-pop
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1019 :keys "DEL"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1020 :active (>= (calc-stack-size) 1)]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1021 ["Switch (1:) and (2:)"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1022 calc-roll-down
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1023 :keys "TAB"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1024 :active (>= (calc-stack-size) 2)]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1025 ["Duplicate (1:)"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1026 calc-enter
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1027 :keys "RET"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1028 :active (>= (calc-stack-size) 1)]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1029 ["Edit (1:)"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1030 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1031 (require 'calc-yank)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1032 (call-interactively calc-edit))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1033 :keys "`"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1034 :active (>= (calc-stack-size) 1)]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1035 "----"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1036 ["Help on Stack"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1037 (calc-info-goto-node "Stack and Trail")])
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1038 "Menu for Calc's stack functions.")
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1039
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1040 (defvar calc-errors-menu
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1041 (list "Undo"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1042 ["Undo"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1043 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1044 (require 'calc-undo)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1045 (call-interactively 'calc-undo))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1046 :keys "U"]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1047 ["Redo"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1048 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1049 (require 'calc-undo)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1050 (call-interactively 'calc-redo))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1051 :keys "D"]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1052 "----"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1053 ["Help on Undo"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1054 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1055 (calc-info-goto-node "Introduction")
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1056 (Info-goto-node "Undo"))]))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1057
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1058 (defvar calc-modes-menu
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1059 (list "Modes"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1060 ["Precision"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1061 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1062 (require 'calc-ext)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1063 (call-interactively 'calc-precision))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1064 :keys "p"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1065 :help "Set the precision for floating point calculations"]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1066 ["Fraction mode"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1067 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1068 (require 'calc-frac)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1069 (call-interactively 'calc-frac-mode))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1070 :keys "m f"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1071 :style toggle
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1072 :selected calc-prefer-frac
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1073 :help "Leave integer quotients as fractions"]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1074 ["Symbolic mode"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1075 (lambda ()
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1076 (interactive)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1077 (require 'calc-mode)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1078 (calc-symbolic-mode nil))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1079 :keys "m s"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1080 :style toggle
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1081 :selected calc-symbolic-mode
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1082 :help "Leave functions producing inexact answers in symbolic form"]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1083 ["Infinite mode"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1084 (lambda ()
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1085 (interactive)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1086 (require 'calc-mode)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1087 (calc-infinite-mode nil))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1088 :keys "m i"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1089 :style toggle
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1090 :selected calc-infinite-mode
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1091 :help "Let expressions like 1/0 produce infinite results"]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1092 ["Abbreviate long vectors"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1093 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1094 (require 'calc-mode)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1095 (call-interactively 'calc-full-vectors))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1096 :keys "v ."
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1097 :style toggle
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1098 :selected (not calc-full-vectors)]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1099 (list "Angle Measure"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1100 ["Radians"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1101 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1102 (require 'calc-math)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1103 (call-interactively 'calc-radians-mode))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1104 :keys "m r"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1105 :style radio
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1106 :selected (eq calc-angle-mode 'rad)]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1107 ["Degrees"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1108 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1109 (require 'calc-math)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1110 (call-interactively 'calc-degrees-mode))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1111 :keys "m d"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1112 :style radio
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1113 :selected (eq calc-angle-mode 'deg)]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1114 ["HMS"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1115 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1116 (require 'calc-math)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1117 (call-interactively 'calc-hms-mode))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1118 :keys "m h"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1119 :style radio
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1120 :selected (eq calc-angle-mode 'hms)])
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1121 (list "Radix"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1122 ["Decimal"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1123 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1124 (require 'calc-bin)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1125 (call-interactively 'calc-decimal-radix))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1126 :keys "d 0"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1127 :style radio
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1128 :selected (= calc-number-radix 10)]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1129 ["Binary"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1130 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1131 (require 'calc-bin)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1132 (call-interactively 'calc-binary-radix))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1133 :keys "d 2"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1134 :style radio
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1135 :selected (= calc-number-radix 2)]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1136 ["Octal"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1137 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1138 (require 'calc-bin)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1139 (call-interactively 'calc-octal-radix))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1140 :keys "d 8"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1141 :style radio
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1142 :selected (= calc-number-radix 8)]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1143 ["Hexadecimal"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1144 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1145 (require 'calc-bin)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1146 (call-interactively 'calc-hex-radix))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1147 :keys "d 6"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1148 :style radio
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1149 :selected (= calc-number-radix 16)]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1150 ["Other"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1151 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1152 (require 'calc-bin)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1153 (call-interactively 'calc-radix))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1154 :keys "d r"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1155 :style radio
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1156 :selected (not
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1157 (or
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1158 (= calc-number-radix 10)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1159 (= calc-number-radix 2)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1160 (= calc-number-radix 8)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1161 (= calc-number-radix 16)))])
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1162 (list "Float Format"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1163 ["Normal"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1164 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1165 (require 'calc-mode)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1166 (call-interactively 'calc-normal-notation))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1167 :keys "d n"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1168 :style radio
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1169 :selected (eq (car-safe calc-float-format) 'float)]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1170 ["Fixed point"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1171 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1172 (require 'calc-mode)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1173 (call-interactively 'calc-fix-notation))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1174 :keys "d f"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1175 :style radio
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1176 :selected (eq (car-safe calc-float-format) 'fix)]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1177 ["Scientific notation"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1178 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1179 (require 'calc-mode)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1180 (call-interactively 'calc-sci-notation))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1181 :keys "d s"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1182 :style radio
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1183 :selected (eq (car-safe calc-float-format) 'sci)]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1184 ["Engineering notation"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1185 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1186 (require 'calc-mode)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1187 (call-interactively 'calc-eng-notation))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1188 :keys "d e"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1189 :style radio
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1190 :selected (eq (car-safe calc-float-format) 'eng)])
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1191 (list "Complex Format"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1192 ["Default"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1193 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1194 (require 'calc-cplx)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1195 (calc-complex-notation))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1196 :style radio
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1197 :selected (not calc-complex-format)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1198 :keys "d c"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1199 :help "Display complex numbers as ordered pairs."]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1200 ["i notation"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1201 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1202 (require 'calc-cplx)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1203 (calc-i-notation))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1204 :style radio
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1205 :selected (eq calc-complex-format 'i)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1206 :keys "d i"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1207 :help "Display complex numbers as a+bi."]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1208 ["j notation"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1209 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1210 (require 'calc-cplx)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1211 (calc-i-notation))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1212 :style radio
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1213 :selected (eq calc-complex-format 'j)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1214 :keys "d j"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1215 :help "Display complex numbers as a+bj."]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1216 ["Other"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1217 (calc-complex-notation)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1218 :style radio
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1219 :selected (and calc-complex-format
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1220 (not (eq calc-complex-format 'i))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1221 (not (eq calc-complex-format 'j)))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1222 :active nil]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1223 "----"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1224 ["Polar mode"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1225 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1226 (require 'calc-cplx)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1227 (calc-polar-mode nil))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1228 :style toggle
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1229 :selected (eq calc-complex-mode 'polar)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1230 :keys "m p"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1231 :help "Prefer polar form for complex numbers."])
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1232 (list "Algebraic"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1233 ["Normal"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1234 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1235 (require 'calc-mode)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1236 (cond
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1237 (calc-incomplete-algebraic-mode
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1238 (calc-algebraic-mode t))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1239 (calc-algebraic-mode
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1240 (calc-algebraic-mode nil))))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1241 :style radio
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1242 :selected (not calc-algebraic-mode)]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1243 ["Algebraic mode"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1244 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1245 (require 'calc-mode)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1246 (if (or
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1247 calc-incomplete-algebraic-mode
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1248 (not calc-algebraic-mode))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1249 (calc-algebraic-mode nil)))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1250 :keys "m a"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1251 :style radio
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1252 :selected (and calc-algebraic-mode
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1253 (not calc-incomplete-algebraic-mode))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1254 :help "Keys which start numeric entry also start algebraic entry"]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1255 ["Incomplete algebraic mode"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1256 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1257 (require 'calc-mode)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1258 (unless calc-incomplete-algebraic-mode
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1259 (calc-algebraic-mode t)))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1260 :keys "C-u m a"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1261 :style radio
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1262 :selected calc-incomplete-algebraic-mode
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1263 :help "Only ( and [ begin algebraic entry"]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1264 ["Total algebraic mode"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1265 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1266 (require 'calc-mode)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1267 (unless (eq calc-algebraic-mode 'total)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1268 (calc-total-algebraic-mode nil)))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1269 :keys "m t"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1270 :style radio
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1271 :selected (eq calc-algebraic-mode 'total)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1272 :help "All regular letters and punctuation begin algebraic entry"])
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1273 (list "Language"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1274 ["Normal"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1275 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1276 (require 'calc-lang)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1277 (call-interactively 'calc-normal-language))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1278 :keys "d N"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1279 :style radio
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1280 :selected (eq calc-language nil)]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1281 ["Big"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1282 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1283 (require 'calc-lang)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1284 (call-interactively 'calc-big-language))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1285 :keys "d B"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1286 :style radio
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1287 :selected (eq calc-language 'big)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1288 :help "Use textual approximations to various mathematical notations"]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1289 ["Flat"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1290 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1291 (require 'calc-lang)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1292 (call-interactively 'calc-flat-language))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1293 :keys "d O"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1294 :style radio
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1295 :selected (eq calc-language 'flat)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1296 :help "Write matrices on a single line"]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1297 ["C"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1298 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1299 (require 'calc-lang)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1300 (call-interactively 'calc-c-language))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1301 :keys "d C"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1302 :style radio
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1303 :selected (eq calc-language 'c)]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1304 ["Pascal"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1305 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1306 (require 'calc-lang)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1307 (call-interactively 'calc-pascal-language))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1308 :keys "d P"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1309 :style radio
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1310 :selected (eq calc-language 'pascal)]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1311 ["Fortran"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1312 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1313 (require 'calc-lang)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1314 (call-interactively 'calc-fortran-language))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1315 :keys "d F"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1316 :style radio
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1317 :selected (eq calc-language 'fortran)]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1318 ["TeX"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1319 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1320 (require 'calc-lang)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1321 (call-interactively 'calc-tex-language))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1322 :keys "d T"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1323 :style radio
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1324 :selected (eq calc-language 'tex)]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1325 ["LaTeX"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1326 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1327 (require 'calc-lang)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1328 (call-interactively 'calc-latex-language))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1329 :keys "d L"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1330 :style radio
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1331 :selected (eq calc-language 'latex)]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1332 ["Eqn"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1333 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1334 (require 'calc-lang)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1335 (call-interactively 'calc-eqn-language))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1336 :keys "d E"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1337 :style radio
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1338 :selected (eq calc-language 'eqn)]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1339 ["Yacas"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1340 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1341 (require 'calc-lang)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1342 (call-interactively 'calc-yacas-language))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1343 :keys "d Y"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1344 :style radio
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1345 :selected (eq calc-language 'yacas)]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1346 ["Maxima"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1347 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1348 (require 'calc-lang)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1349 (call-interactively 'calc-maxima-language))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1350 :keys "d X"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1351 :style radio
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1352 :selected (eq calc-language 'maxima)]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1353 ["Giac"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1354 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1355 (require 'calc-lang)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1356 (call-interactively 'calc-giac-language))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1357 :keys "d A"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1358 :style radio
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1359 :selected (eq calc-language 'giac)]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1360 ["Mma"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1361 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1362 (require 'calc-lang)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1363 (call-interactively 'calc-mathematica-language))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1364 :keys "d M"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1365 :style radio
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1366 :selected (eq calc-language 'math)]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1367 ["Maple"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1368 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1369 (require 'calc-lang)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1370 (call-interactively 'calc-maple-language))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1371 :keys "d W"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1372 :style radio
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1373 :selected (eq calc-language 'maple)])
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1374 "----"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1375 ["Save mode settings" calc-save-modes :keys "m m"]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1376 "----"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1377 ["Help on Modes"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1378 (calc-info-goto-node "Mode settings")])
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1379 "Menu for Calc's mode settings.")
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1380
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1381 (defvar calc-help-menu
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1382 (list "Help"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1383 ["Manual"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1384 calc-info
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1385 :keys "h i"]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1386 ["Tutorial"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1387 calc-tutorial
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1388 :keys "h t"]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1389 ["Summary"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1390 calc-info-summary
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1391 :keys "h s"]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1392 "----"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1393 ["Help on Help"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1394 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1395 (calc-info-goto-node "Introduction")
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1396 (Info-goto-node "Help Commands"))])
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1397 "Menu for Calc's help functions.")
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1398
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1399 (defvar calc-mode-map)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1400
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1401 (easy-menu-define
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1402 calc-menu
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1403 calc-mode-map
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1404 "Menu for Calc."
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1405 (list "Calc"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1406 :visible '(eq major-mode 'calc-mode)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1407 calc-arithmetic-menu
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1408 calc-scientific-function-menu
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1409 calc-algebra-menu
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1410 calc-graphics-menu
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1411 calc-vectors-menu
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1412 calc-units-menu
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1413 calc-variables-menu
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1414 calc-stack-menu
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1415 calc-errors-menu
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1416 calc-modes-menu
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1417 calc-help-menu
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1418 ["Reset"
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1419 (progn
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1420 (require 'calc-ext)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1421 (call-interactively 'calc-reset))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1422 :help "Reset Calc to its initial state"]
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1423 ["Quit" calc-quit]))
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1424
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1425 (provide 'calc-menu)
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1426
0b5aac835c1f Re-added calc-menu.el to fix persmissions.
Bastien Guerry <bzg@altern.org>
parents:
diff changeset
1427 ;; arch-tag: 9612c86a-cd4f-4baa-ab0b-40af7344d21f