annotate lisp/calc/calc-menu.el @ 87249:cd9c122de2ca

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