| 1 |
|
|---|
| 2 |
|
|---|
| 3 |
|
|---|
| 4 |
|
|---|
| 5 |
|
|---|
| 6 |
|
|---|
| 7 |
|
|---|
| 8 |
|
|---|
| 9 |
|
|---|
| 10 |
|
|---|
| 11 |
|
|---|
| 12 |
|
|---|
| 13 |
|
|---|
| 14 |
|
|---|
| 15 |
|
|---|
| 16 |
|
|---|
| 17 |
|
|---|
| 18 |
|
|---|
| 19 |
|
|---|
| 20 |
|
|---|
| 21 |
|
|---|
| 22 |
|
|---|
| 23 |
|
|---|
| 24 |
|
|---|
| 25 |
|
|---|
| 26 |
|
|---|
| 27 |
|
|---|
| 28 |
|
|---|
| 29 |
|
|---|
| 30 |
(require 'calc) |
|---|
| 31 |
(require 'calc-macs) |
|---|
| 32 |
|
|---|
| 33 |
(defvar math-simplifying nil) |
|---|
| 34 |
(defvar math-living-dangerously nil) |
|---|
| 35 |
(defvar math-integrating nil) |
|---|
| 36 |
|
|---|
| 37 |
(defvar math-rewrite-selections nil) |
|---|
| 38 |
|
|---|
| 39 |
(defvar math-compose-level 0) |
|---|
| 40 |
(defvar math-comp-selected nil) |
|---|
| 41 |
(defvar math-comp-tagged nil) |
|---|
| 42 |
(defvar math-comp-sel-hpos nil) |
|---|
| 43 |
(defvar math-comp-sel-vpos nil) |
|---|
| 44 |
(defvar math-comp-sel-cpos nil) |
|---|
| 45 |
(defvar math-compose-hash-args nil) |
|---|
| 46 |
|
|---|
| 47 |
(defvar calc-alg-map) |
|---|
| 48 |
(defvar calc-alg-esc-map) |
|---|
| 49 |
|
|---|
| 50 |
|
|---|
| 51 |
(defun calc-init-extensions () |
|---|
| 52 |
|
|---|
| 53 |
(define-key calc-mode-map ":" 'calc-fdiv) |
|---|
| 54 |
(define-key calc-mode-map "\\" 'calc-idiv) |
|---|
| 55 |
(define-key calc-mode-map "|" 'calc-concat) |
|---|
| 56 |
(define-key calc-mode-map "!" 'calc-factorial) |
|---|
| 57 |
(define-key calc-mode-map "C" 'calc-cos) |
|---|
| 58 |
(define-key calc-mode-map "E" 'calc-exp) |
|---|
| 59 |
(define-key calc-mode-map "H" 'calc-hyperbolic) |
|---|
| 60 |
(define-key calc-mode-map "I" 'calc-inverse) |
|---|
| 61 |
(define-key calc-mode-map "J" 'calc-conj) |
|---|
| 62 |
(define-key calc-mode-map "L" 'calc-ln) |
|---|
| 63 |
(define-key calc-mode-map "N" 'calc-eval-num) |
|---|
| 64 |
(define-key calc-mode-map "P" 'calc-pi) |
|---|
| 65 |
(define-key calc-mode-map "Q" 'calc-sqrt) |
|---|
| 66 |
(define-key calc-mode-map "R" 'calc-round) |
|---|
| 67 |
(define-key calc-mode-map "S" 'calc-sin) |
|---|
| 68 |
(define-key calc-mode-map "T" 'calc-tan) |
|---|
| 69 |
(define-key calc-mode-map "U" 'calc-undo) |
|---|
| 70 |
(define-key calc-mode-map "X" 'calc-call-last-kbd-macro) |
|---|
| 71 |
(define-key calc-mode-map "o" 'calc-realign) |
|---|
| 72 |
(define-key calc-mode-map "p" 'calc-precision) |
|---|
| 73 |
(define-key calc-mode-map "w" 'calc-why) |
|---|
| 74 |
(define-key calc-mode-map "x" 'calc-execute-extended-command) |
|---|
| 75 |
(define-key calc-mode-map "y" 'calc-copy-to-buffer) |
|---|
| 76 |
|
|---|
| 77 |
(define-key calc-mode-map "(" 'calc-begin-complex) |
|---|
| 78 |
(define-key calc-mode-map ")" 'calc-end-complex) |
|---|
| 79 |
(define-key calc-mode-map "[" 'calc-begin-vector) |
|---|
| 80 |
(define-key calc-mode-map "]" 'calc-end-vector) |
|---|
| 81 |
(define-key calc-mode-map "," 'calc-comma) |
|---|
| 82 |
(define-key calc-mode-map ";" 'calc-semi) |
|---|
| 83 |
(define-key calc-mode-map "`" 'calc-edit) |
|---|
| 84 |
(define-key calc-mode-map "=" 'calc-evaluate) |
|---|
| 85 |
(define-key calc-mode-map "~" 'calc-num-prefix) |
|---|
| 86 |
(define-key calc-mode-map "<" 'calc-scroll-left) |
|---|
| 87 |
(define-key calc-mode-map ">" 'calc-scroll-right) |
|---|
| 88 |
(define-key calc-mode-map "{" 'calc-scroll-down) |
|---|
| 89 |
(define-key calc-mode-map "}" 'calc-scroll-up) |
|---|
| 90 |
(define-key calc-mode-map "\C-k" 'calc-kill) |
|---|
| 91 |
(define-key calc-mode-map "\M-k" 'calc-copy-as-kill) |
|---|
| 92 |
(define-key calc-mode-map "\C-w" 'calc-kill-region) |
|---|
| 93 |
(define-key calc-mode-map "\M-w" 'calc-copy-region-as-kill) |
|---|
| 94 |
(define-key calc-mode-map "\C-y" 'calc-yank) |
|---|
| 95 |
(define-key calc-mode-map [mouse-2] 'calc-yank) |
|---|
| 96 |
(define-key calc-mode-map "\C-_" 'calc-undo) |
|---|
| 97 |
(define-key calc-mode-map "\C-xu" 'calc-undo) |
|---|
| 98 |
(define-key calc-mode-map "\M-\C-m" 'calc-last-args) |
|---|
| 99 |
|
|---|
| 100 |
(define-key calc-mode-map "a" nil) |
|---|
| 101 |
(define-key calc-mode-map "a?" 'calc-a-prefix-help) |
|---|
| 102 |
(define-key calc-mode-map "aa" 'calc-apart) |
|---|
| 103 |
(define-key calc-mode-map "ab" 'calc-substitute) |
|---|
| 104 |
(define-key calc-mode-map "ac" 'calc-collect) |
|---|
| 105 |
(define-key calc-mode-map "ad" 'calc-derivative) |
|---|
| 106 |
(define-key calc-mode-map "ae" 'calc-simplify-extended) |
|---|
| 107 |
(define-key calc-mode-map "af" 'calc-factor) |
|---|
| 108 |
(define-key calc-mode-map "ag" 'calc-poly-gcd) |
|---|
| 109 |
(define-key calc-mode-map "ai" 'calc-integral) |
|---|
| 110 |
(define-key calc-mode-map "am" 'calc-match) |
|---|
| 111 |
(define-key calc-mode-map "an" 'calc-normalize-rat) |
|---|
| 112 |
(define-key calc-mode-map "ap" 'calc-poly-interp) |
|---|
| 113 |
(define-key calc-mode-map "ar" 'calc-rewrite) |
|---|
| 114 |
(define-key calc-mode-map "as" 'calc-simplify) |
|---|
| 115 |
(define-key calc-mode-map "at" 'calc-taylor) |
|---|
| 116 |
(define-key calc-mode-map "av" 'calc-alg-evaluate) |
|---|
| 117 |
(define-key calc-mode-map "ax" 'calc-expand) |
|---|
| 118 |
(define-key calc-mode-map "aA" 'calc-abs) |
|---|
| 119 |
(define-key calc-mode-map "aF" 'calc-curve-fit) |
|---|
| 120 |
(define-key calc-mode-map "aI" 'calc-num-integral) |
|---|
| 121 |
(define-key calc-mode-map "aM" 'calc-map-equation) |
|---|
| 122 |
(define-key calc-mode-map "aN" 'calc-find-minimum) |
|---|
| 123 |
(define-key calc-mode-map "aP" 'calc-poly-roots) |
|---|
| 124 |
(define-key calc-mode-map "aS" 'calc-solve-for) |
|---|
| 125 |
(define-key calc-mode-map "aR" 'calc-find-root) |
|---|
| 126 |
(define-key calc-mode-map "aT" 'calc-tabulate) |
|---|
| 127 |
(define-key calc-mode-map "aX" 'calc-find-maximum) |
|---|
| 128 |
(define-key calc-mode-map "a+" 'calc-summation) |
|---|
| 129 |
(define-key calc-mode-map "a-" 'calc-alt-summation) |
|---|
| 130 |
(define-key calc-mode-map "a*" 'calc-product) |
|---|
| 131 |
(define-key calc-mode-map "a\\" 'calc-poly-div) |
|---|
| 132 |
(define-key calc-mode-map "a%" 'calc-poly-rem) |
|---|
| 133 |
(define-key calc-mode-map "a/" 'calc-poly-div-rem) |
|---|
| 134 |
(define-key calc-mode-map "a=" 'calc-equal-to) |
|---|
| 135 |
(define-key calc-mode-map "a#" 'calc-not-equal-to) |
|---|
| 136 |
(define-key calc-mode-map "a<" 'calc-less-than) |
|---|
| 137 |
(define-key calc-mode-map "a>" 'calc-greater-than) |
|---|
| 138 |
(define-key calc-mode-map "a[" 'calc-less-equal) |
|---|
| 139 |
(define-key calc-mode-map "a]" 'calc-greater-equal) |
|---|
| 140 |
(define-key calc-mode-map "a." 'calc-remove-equal) |
|---|
| 141 |
(define-key calc-mode-map "a{" 'calc-in-set) |
|---|
| 142 |
(define-key calc-mode-map "a&" 'calc-logical-and) |
|---|
| 143 |
(define-key calc-mode-map "a|" 'calc-logical-or) |
|---|
| 144 |
(define-key calc-mode-map "a!" 'calc-logical-not) |
|---|
| 145 |
(define-key calc-mode-map "a:" 'calc-logical-if) |
|---|
| 146 |
(define-key calc-mode-map "a_" 'calc-subscript) |
|---|
| 147 |
(define-key calc-mode-map "a\"" 'calc-expand-formula) |
|---|
| 148 |
|
|---|
| 149 |
(define-key calc-mode-map "b" nil) |
|---|
| 150 |
(define-key calc-mode-map "b?" 'calc-b-prefix-help) |
|---|
| 151 |
(define-key calc-mode-map "ba" 'calc-and) |
|---|
| 152 |
(define-key calc-mode-map "bc" 'calc-clip) |
|---|
| 153 |
(define-key calc-mode-map "bd" 'calc-diff) |
|---|
| 154 |
(define-key calc-mode-map "bl" 'calc-lshift-binary) |
|---|
| 155 |
(define-key calc-mode-map "bn" 'calc-not) |
|---|
| 156 |
(define-key calc-mode-map "bo" 'calc-or) |
|---|
| 157 |
(define-key calc-mode-map "bp" 'calc-pack-bits) |
|---|
| 158 |
(define-key calc-mode-map "br" 'calc-rshift-binary) |
|---|
| 159 |
(define-key calc-mode-map "bt" 'calc-rotate-binary) |
|---|
| 160 |
(define-key calc-mode-map "bu" 'calc-unpack-bits) |
|---|
| 161 |
(define-key calc-mode-map "bw" 'calc-word-size) |
|---|
| 162 |
(define-key calc-mode-map "bx" 'calc-xor) |
|---|
| 163 |
(define-key calc-mode-map "bB" 'calc-log) |
|---|
| 164 |
(define-key calc-mode-map "bD" 'calc-fin-ddb) |
|---|
| 165 |
(define-key calc-mode-map "bF" 'calc-fin-fv) |
|---|
| 166 |
(define-key calc-mode-map "bI" 'calc-fin-irr) |
|---|
| 167 |
(define-key calc-mode-map "bL" 'calc-lshift-arith) |
|---|
| 168 |
(define-key calc-mode-map "bM" 'calc-fin-pmt) |
|---|
| 169 |
(define-key calc-mode-map "bN" 'calc-fin-npv) |
|---|
| 170 |
(define-key calc-mode-map "bP" 'calc-fin-pv) |
|---|
| 171 |
(define-key calc-mode-map "bR" 'calc-rshift-arith) |
|---|
| 172 |
(define-key calc-mode-map "bS" 'calc-fin-sln) |
|---|
| 173 |
(define-key calc-mode-map "bT" 'calc-fin-rate) |
|---|
| 174 |
(define-key calc-mode-map "bY" 'calc-fin-syd) |
|---|
| 175 |
(define-key calc-mode-map "b#" 'calc-fin-nper) |
|---|
| 176 |
(define-key calc-mode-map "b%" 'calc-percent-change) |
|---|
| 177 |
|
|---|
| 178 |
(define-key calc-mode-map "c" nil) |
|---|
| 179 |
(define-key calc-mode-map "c?" 'calc-c-prefix-help) |
|---|
| 180 |
(define-key calc-mode-map "cc" 'calc-clean) |
|---|
| 181 |
(define-key calc-mode-map "cd" 'calc-to-degrees) |
|---|
| 182 |
(define-key calc-mode-map "cf" 'calc-float) |
|---|
| 183 |
(define-key calc-mode-map "ch" 'calc-to-hms) |
|---|
| 184 |
(define-key calc-mode-map "cp" 'calc-polar) |
|---|
| 185 |
(define-key calc-mode-map "cr" 'calc-to-radians) |
|---|
| 186 |
(define-key calc-mode-map "cC" 'calc-cos) |
|---|
| 187 |
(define-key calc-mode-map "cF" 'calc-fraction) |
|---|
| 188 |
(define-key calc-mode-map "c%" 'calc-convert-percent) |
|---|
| 189 |
|
|---|
| 190 |
(define-key calc-mode-map "d" nil) |
|---|
| 191 |
(define-key calc-mode-map "d?" 'calc-d-prefix-help) |
|---|
| 192 |
(define-key calc-mode-map "d0" 'calc-decimal-radix) |
|---|
| 193 |
(define-key calc-mode-map "d2" 'calc-binary-radix) |
|---|
| 194 |
(define-key calc-mode-map "d6" 'calc-hex-radix) |
|---|
| 195 |
(define-key calc-mode-map "d8" 'calc-octal-radix) |
|---|
| 196 |
(define-key calc-mode-map "db" 'calc-line-breaking) |
|---|
| 197 |
(define-key calc-mode-map "dc" 'calc-complex-notation) |
|---|
| 198 |
(define-key calc-mode-map "dd" 'calc-date-notation) |
|---|
| 199 |
(define-key calc-mode-map "de" 'calc-eng-notation) |
|---|
| 200 |
(define-key calc-mode-map "df" 'calc-fix-notation) |
|---|
| 201 |
(define-key calc-mode-map "dg" 'calc-group-digits) |
|---|
| 202 |
(define-key calc-mode-map "dh" 'calc-hms-notation) |
|---|
| 203 |
(define-key calc-mode-map "di" 'calc-i-notation) |
|---|
| 204 |
(define-key calc-mode-map "dj" 'calc-j-notation) |
|---|
| 205 |
(define-key calc-mode-map "dl" 'calc-line-numbering) |
|---|
| 206 |
(define-key calc-mode-map "dn" 'calc-normal-notation) |
|---|
| 207 |
(define-key calc-mode-map "do" 'calc-over-notation) |
|---|
| 208 |
(define-key calc-mode-map "dp" 'calc-show-plain) |
|---|
| 209 |
(define-key calc-mode-map "dr" 'calc-radix) |
|---|
| 210 |
(define-key calc-mode-map "ds" 'calc-sci-notation) |
|---|
| 211 |
(define-key calc-mode-map "dt" 'calc-truncate-stack) |
|---|
| 212 |
(define-key calc-mode-map "dw" 'calc-auto-why) |
|---|
| 213 |
(define-key calc-mode-map "dz" 'calc-leading-zeros) |
|---|
| 214 |
(define-key calc-mode-map "dB" 'calc-big-language) |
|---|
| 215 |
(define-key calc-mode-map "dD" 'calc-redo) |
|---|
| 216 |
(define-key calc-mode-map "dC" 'calc-c-language) |
|---|
| 217 |
(define-key calc-mode-map "dE" 'calc-eqn-language) |
|---|
| 218 |
(define-key calc-mode-map "dF" 'calc-fortran-language) |
|---|
| 219 |
(define-key calc-mode-map "dM" 'calc-mathematica-language) |
|---|
| 220 |
(define-key calc-mode-map "dN" 'calc-normal-language) |
|---|
| 221 |
(define-key calc-mode-map "dO" 'calc-flat-language) |
|---|
| 222 |
(define-key calc-mode-map "dP" 'calc-pascal-language) |
|---|
| 223 |
(define-key calc-mode-map "dT" 'calc-tex-language) |
|---|
| 224 |
(define-key calc-mode-map "dL" 'calc-latex-language) |
|---|
| 225 |
(define-key calc-mode-map "dU" 'calc-unformatted-language) |
|---|
| 226 |
(define-key calc-mode-map "dW" 'calc-maple-language) |
|---|
| 227 |
(define-key calc-mode-map "d[" 'calc-truncate-up) |
|---|
| 228 |
(define-key calc-mode-map "d]" 'calc-truncate-down) |
|---|
| 229 |
(define-key calc-mode-map "d." 'calc-point-char) |
|---|
| 230 |
(define-key calc-mode-map "d," 'calc-group-char) |
|---|
| 231 |
(define-key calc-mode-map "d\"" 'calc-display-strings) |
|---|
| 232 |
(define-key calc-mode-map "d<" 'calc-left-justify) |
|---|
| 233 |
(define-key calc-mode-map "d=" 'calc-center-justify) |
|---|
| 234 |
(define-key calc-mode-map "d>" 'calc-right-justify) |
|---|
| 235 |
(define-key calc-mode-map "d{" 'calc-left-label) |
|---|
| 236 |
(define-key calc-mode-map "d}" 'calc-right-label) |
|---|
| 237 |
(define-key calc-mode-map "d'" 'calc-display-raw) |
|---|
| 238 |
(define-key calc-mode-map "d " 'calc-refresh) |
|---|
| 239 |
(define-key calc-mode-map "d\r" 'calc-refresh-top) |
|---|
| 240 |
(define-key calc-mode-map "d@" 'calc-toggle-banner) |
|---|
| 241 |
|
|---|
| 242 |
(define-key calc-mode-map "f" nil) |
|---|
| 243 |
(define-key calc-mode-map "f?" 'calc-f-prefix-help) |
|---|
| 244 |
(define-key calc-mode-map "fb" 'calc-beta) |
|---|
| 245 |
(define-key calc-mode-map "fe" 'calc-erf) |
|---|
| 246 |
(define-key calc-mode-map "fg" 'calc-gamma) |
|---|
| 247 |
(define-key calc-mode-map "fh" 'calc-hypot) |
|---|
| 248 |
(define-key calc-mode-map "fi" 'calc-im) |
|---|
| 249 |
(define-key calc-mode-map "fj" 'calc-bessel-J) |
|---|
| 250 |
(define-key calc-mode-map "fn" 'calc-min) |
|---|
| 251 |
(define-key calc-mode-map "fr" 'calc-re) |
|---|
| 252 |
(define-key calc-mode-map "fs" 'calc-sign) |
|---|
| 253 |
(define-key calc-mode-map "fx" 'calc-max) |
|---|
| 254 |
(define-key calc-mode-map "fy" 'calc-bessel-Y) |
|---|
| 255 |
(define-key calc-mode-map "fA" 'calc-abssqr) |
|---|
| 256 |
(define-key calc-mode-map "fB" 'calc-inc-beta) |
|---|
| 257 |
(define-key calc-mode-map "fE" 'calc-expm1) |
|---|
| 258 |
(define-key calc-mode-map "fF" 'calc-floor) |
|---|
| 259 |
(define-key calc-mode-map "fG" 'calc-inc-gamma) |
|---|
| 260 |
(define-key calc-mode-map "fI" 'calc-ilog) |
|---|
| 261 |
(define-key calc-mode-map "fL" 'calc-lnp1) |
|---|
| 262 |
(define-key calc-mode-map "fM" 'calc-mant-part) |
|---|
| 263 |
(define-key calc-mode-map "fQ" 'calc-isqrt) |
|---|
| 264 |
(define-key calc-mode-map "fS" 'calc-scale-float) |
|---|
| 265 |
(define-key calc-mode-map "fT" 'calc-arctan2) |
|---|
| 266 |
(define-key calc-mode-map "fX" 'calc-xpon-part) |
|---|
| 267 |
(define-key calc-mode-map "f[" 'calc-decrement) |
|---|
| 268 |
(define-key calc-mode-map "f]" 'calc-increment) |
|---|
| 269 |
|
|---|
| 270 |
(define-key calc-mode-map "g" nil) |
|---|
| 271 |
(define-key calc-mode-map "g?" 'calc-g-prefix-help) |
|---|
| 272 |
(define-key calc-mode-map "ga" 'calc-graph-add) |
|---|
| 273 |
(define-key calc-mode-map "gb" 'calc-graph-border) |
|---|
| 274 |
(define-key calc-mode-map "gc" 'calc-graph-clear) |
|---|
| 275 |
(define-key calc-mode-map "gd" 'calc-graph-delete) |
|---|
| 276 |
(define-key calc-mode-map "gf" 'calc-graph-fast) |
|---|
| 277 |
(define-key calc-mode-map "gg" 'calc-graph-grid) |
|---|
| 278 |
(define-key calc-mode-map "gh" 'calc-graph-header) |
|---|
| 279 |
(define-key calc-mode-map "gk" 'calc-graph-key) |
|---|
| 280 |
(define-key calc-mode-map "gj" 'calc-graph-juggle) |
|---|
| 281 |
(define-key calc-mode-map "gl" 'calc-graph-log-x) |
|---|
| 282 |
(define-key calc-mode-map "gn" 'calc-graph-name) |
|---|
| 283 |
(define-key calc-mode-map "gp" 'calc-graph-plot) |
|---|
| 284 |
(define-key calc-mode-map "gq" 'calc-graph-quit) |
|---|
| 285 |
(define-key calc-mode-map "gr" 'calc-graph-range-x) |
|---|
| 286 |
(define-key calc-mode-map "gs" 'calc-graph-line-style) |
|---|
| 287 |
(define-key calc-mode-map "gt" 'calc-graph-title-x) |
|---|
| 288 |
(define-key calc-mode-map "gv" 'calc-graph-view-commands) |
|---|
| 289 |
(define-key calc-mode-map "gx" 'calc-graph-display) |
|---|
| 290 |
(define-key calc-mode-map "gz" 'calc-graph-zero-x) |
|---|
| 291 |
(define-key calc-mode-map "gA" 'calc-graph-add-3d) |
|---|
| 292 |
(define-key calc-mode-map "gC" 'calc-graph-command) |
|---|
| 293 |
(define-key calc-mode-map "gD" 'calc-graph-device) |
|---|
| 294 |
(define-key calc-mode-map "gF" 'calc-graph-fast-3d) |
|---|
| 295 |
(define-key calc-mode-map "gG" 'calc-argument) |
|---|
| 296 |
(define-key calc-mode-map "gH" 'calc-graph-hide) |
|---|
| 297 |
(define-key calc-mode-map "gK" 'calc-graph-kill) |
|---|
| 298 |
(define-key calc-mode-map "gL" 'calc-graph-log-y) |
|---|
| 299 |
(define-key calc-mode-map "gN" 'calc-graph-num-points) |
|---|
| 300 |
(define-key calc-mode-map "gO" 'calc-graph-output) |
|---|
| 301 |
(define-key calc-mode-map "gP" 'calc-graph-print) |
|---|
| 302 |
(define-key calc-mode-map "gR" 'calc-graph-range-y) |
|---|
| 303 |
(define-key calc-mode-map "gS" 'calc-graph-point-style) |
|---|
| 304 |
(define-key calc-mode-map "gT" 'calc-graph-title-y) |
|---|
| 305 |
(define-key calc-mode-map "gV" 'calc-graph-view-trail) |
|---|
| 306 |
(define-key calc-mode-map "gX" 'calc-graph-geometry) |
|---|
| 307 |
(define-key calc-mode-map "gZ" 'calc-graph-zero-y) |
|---|
| 308 |
(define-key calc-mode-map "g\C-l" 'calc-graph-log-z) |
|---|
| 309 |
(define-key calc-mode-map "g\C-r" 'calc-graph-range-z) |
|---|
| 310 |
(define-key calc-mode-map "g\C-t" 'calc-graph-title-z) |
|---|
| 311 |
|
|---|
| 312 |
(define-key calc-mode-map "h" 'calc-help-prefix) |
|---|
| 313 |
|
|---|
| 314 |
(define-key calc-mode-map "j" nil) |
|---|
| 315 |
(define-key calc-mode-map "j?" 'calc-j-prefix-help) |
|---|
| 316 |
(define-key calc-mode-map "ja" 'calc-select-additional) |
|---|
| 317 |
(define-key calc-mode-map "jb" 'calc-break-selections) |
|---|
| 318 |
(define-key calc-mode-map "jc" 'calc-clear-selections) |
|---|
| 319 |
(define-key calc-mode-map "jd" 'calc-show-selections) |
|---|
| 320 |
(define-key calc-mode-map "je" 'calc-enable-selections) |
|---|
| 321 |
(define-key calc-mode-map "jl" 'calc-select-less) |
|---|
| 322 |
(define-key calc-mode-map "jm" 'calc-select-more) |
|---|
| 323 |
(define-key calc-mode-map "jn" 'calc-select-next) |
|---|
| 324 |
(define-key calc-mode-map "jo" 'calc-select-once) |
|---|
| 325 |
(define-key calc-mode-map "jp" 'calc-select-previous) |
|---|
| 326 |
(define-key calc-mode-map "jr" 'calc-rewrite-selection) |
|---|
| 327 |
(define-key calc-mode-map "js" 'calc-select-here) |
|---|
| 328 |
(define-key calc-mode-map "jv" 'calc-sel-evaluate) |
|---|
| 329 |
(define-key calc-mode-map "ju" 'calc-unselect) |
|---|
| 330 |
(define-key calc-mode-map "jC" 'calc-sel-commute) |
|---|
| 331 |
(define-key calc-mode-map "jD" 'calc-sel-distribute) |
|---|
| 332 |
(define-key calc-mode-map "jE" 'calc-sel-jump-equals) |
|---|
| 333 |
(define-key calc-mode-map "jI" 'calc-sel-isolate) |
|---|
| 334 |
(define-key calc-mode-map "jJ" 'calc-conj) |
|---|
| 335 |
(define-key calc-mode-map "jL" 'calc-commute-left) |
|---|
| 336 |
(define-key calc-mode-map "jM" 'calc-sel-merge) |
|---|
| 337 |
(define-key calc-mode-map "jN" 'calc-sel-negate) |
|---|
| 338 |
(define-key calc-mode-map "jO" 'calc-select-once-maybe) |
|---|
| 339 |
(define-key calc-mode-map "jR" 'calc-commute-right) |
|---|
| 340 |
(define-key calc-mode-map "jS" 'calc-select-here-maybe) |
|---|
| 341 |
(define-key calc-mode-map "jU" 'calc-sel-unpack) |
|---|
| 342 |
(define-key calc-mode-map "j&" 'calc-sel-invert) |
|---|
| 343 |
(define-key calc-mode-map "j\r" 'calc-copy-selection) |
|---|
| 344 |
(define-key calc-mode-map "j\n" 'calc-copy-selection) |
|---|
| 345 |
(define-key calc-mode-map "j\010" 'calc-del-selection) |
|---|
| 346 |
(define-key calc-mode-map "j\177" 'calc-del-selection) |
|---|
| 347 |
(define-key calc-mode-map "j'" 'calc-enter-selection) |
|---|
| 348 |
(define-key calc-mode-map "j`" 'calc-edit-selection) |
|---|
| 349 |
(define-key calc-mode-map "j+" 'calc-sel-add-both-sides) |
|---|
| 350 |
(define-key calc-mode-map "j-" 'calc-sel-sub-both-sides) |
|---|
| 351 |
(define-key calc-mode-map "j*" 'calc-sel-mult-both-sides) |
|---|
| 352 |
(define-key calc-mode-map "j/" 'calc-sel-div-both-sides) |
|---|
| 353 |
(define-key calc-mode-map "j\"" 'calc-sel-expand-formula) |
|---|
| 354 |
|
|---|
| 355 |
(define-key calc-mode-map "k" nil) |
|---|
| 356 |
(define-key calc-mode-map "k?" 'calc-k-prefix-help) |
|---|
| 357 |
(define-key calc-mode-map "ka" 'calc-random-again) |
|---|
| 358 |
(define-key calc-mode-map "kb" 'calc-bernoulli-number) |
|---|
| 359 |
(define-key calc-mode-map "kc" 'calc-choose) |
|---|
| 360 |
(define-key calc-mode-map "kd" 'calc-double-factorial) |
|---|
| 361 |
(define-key calc-mode-map "ke" 'calc-euler-number) |
|---|
| 362 |
(define-key calc-mode-map "kf" 'calc-prime-factors) |
|---|
| 363 |
(define-key calc-mode-map "kg" 'calc-gcd) |
|---|
| 364 |
(define-key calc-mode-map "kh" 'calc-shuffle) |
|---|
| 365 |
(define-key calc-mode-map "kl" 'calc-lcm) |
|---|
| 366 |
(define-key calc-mode-map "km" 'calc-moebius) |
|---|
| 367 |
(define-key calc-mode-map "kn" 'calc-next-prime) |
|---|
| 368 |
(define-key calc-mode-map "kp" 'calc-prime-test) |
|---|
| 369 |
(define-key calc-mode-map "kr" 'calc-random) |
|---|
| 370 |
(define-key calc-mode-map "ks" 'calc-stirling-number) |
|---|
| 371 |
(define-key calc-mode-map "kt" 'calc-totient) |
|---|
| 372 |
(define-key calc-mode-map "kB" 'calc-utpb) |
|---|
| 373 |
(define-key calc-mode-map "kC" 'calc-utpc) |
|---|
| 374 |
(define-key calc-mode-map "kE" 'calc-extended-gcd) |
|---|
| 375 |
(define-key calc-mode-map "kF" 'calc-utpf) |
|---|
| 376 |
(define-key calc-mode-map "kK" 'calc-keep-args) |
|---|
| 377 |
(define-key calc-mode-map "kN" 'calc-utpn) |
|---|
| 378 |
(define-key calc-mode-map "kP" 'calc-utpp) |
|---|
| 379 |
(define-key calc-mode-map "kT" 'calc-utpt) |
|---|
| 380 |
|
|---|
| 381 |
(define-key calc-mode-map "m" nil) |
|---|
| 382 |
(define-key calc-mode-map "m?" 'calc-m-prefix-help) |
|---|
| 383 |
(define-key calc-mode-map "ma" 'calc-algebraic-mode) |
|---|
| 384 |
(define-key calc-mode-map "md" 'calc-degrees-mode) |
|---|
| 385 |
(define-key calc-mode-map "me" 'calc-embedded-preserve-modes) |
|---|
| 386 |
(define-key calc-mode-map "mf" 'calc-frac-mode) |
|---|
| 387 |
(define-key calc-mode-map "mg" 'calc-get-modes) |
|---|
| 388 |
(define-key calc-mode-map "mh" 'calc-hms-mode) |
|---|
| 389 |
(define-key calc-mode-map "mi" 'calc-infinite-mode) |
|---|
| 390 |
(define-key calc-mode-map "mm" 'calc-save-modes) |
|---|
| 391 |
(define-key calc-mode-map "mp" 'calc-polar-mode) |
|---|
| 392 |
(define-key calc-mode-map "mr" 'calc-radians-mode) |
|---|
| 393 |
(define-key calc-mode-map "ms" 'calc-symbolic-mode) |
|---|
| 394 |
(define-key calc-mode-map "mt" 'calc-total-algebraic-mode) |
|---|
| 395 |
(define-key calc-mode-map "\emt" 'calc-total-algebraic-mode) |
|---|
| 396 |
(define-key calc-mode-map "\em\et" 'calc-total-algebraic-mode) |
|---|
| 397 |
(define-key calc-mode-map "mv" 'calc-matrix-mode) |
|---|
| 398 |
(define-key calc-mode-map "mw" 'calc-working) |
|---|
| 399 |
(define-key calc-mode-map "mx" 'calc-always-load-extensions) |
|---|
| 400 |
(define-key calc-mode-map "mA" 'calc-alg-simplify-mode) |
|---|
| 401 |
(define-key calc-mode-map "mB" 'calc-bin-simplify-mode) |
|---|
| 402 |
(define-key calc-mode-map "mC" 'calc-auto-recompute) |
|---|
| 403 |
(define-key calc-mode-map "mD" 'calc-default-simplify-mode) |
|---|
| 404 |
(define-key calc-mode-map "mE" 'calc-ext-simplify-mode) |
|---|
| 405 |
(define-key calc-mode-map "mF" 'calc-settings-file-name) |
|---|
| 406 |
(define-key calc-mode-map "mM" 'calc-more-recursion-depth) |
|---|
| 407 |
(define-key calc-mode-map "mN" 'calc-num-simplify-mode) |
|---|
| 408 |
(define-key calc-mode-map "mO" 'calc-no-simplify-mode) |
|---|
| 409 |
(define-key calc-mode-map "mR" 'calc-mode-record-mode) |
|---|
| 410 |
(define-key calc-mode-map "mS" 'calc-shift-prefix) |
|---|
| 411 |
(define-key calc-mode-map "mU" 'calc-units-simplify-mode) |
|---|
| 412 |
(define-key calc-mode-map "mX" 'calc-load-everything) |
|---|
| 413 |
|
|---|
| 414 |
(define-key calc-mode-map "r" nil) |
|---|
| 415 |
(define-key calc-mode-map "r?" 'calc-r-prefix-help) |
|---|
| 416 |
|
|---|
| 417 |
(define-key calc-mode-map "s" nil) |
|---|
| 418 |
(define-key calc-mode-map "s?" 'calc-s-prefix-help) |
|---|
| 419 |
(define-key calc-mode-map "sc" 'calc-copy-variable) |
|---|
| 420 |
(define-key calc-mode-map "sd" 'calc-declare-variable) |
|---|
| 421 |
(define-key calc-mode-map "se" 'calc-edit-variable) |
|---|
| 422 |
(define-key calc-mode-map "si" 'calc-insert-variables) |
|---|
| 423 |
(define-key calc-mode-map "sk" 'calc-copy-special-constant) |
|---|
| 424 |
(define-key calc-mode-map "sl" 'calc-let) |
|---|
| 425 |
(define-key calc-mode-map "sm" 'calc-store-map) |
|---|
| 426 |
(define-key calc-mode-map "sn" 'calc-store-neg) |
|---|
| 427 |
(define-key calc-mode-map "sp" 'calc-permanent-variable) |
|---|
| 428 |
(define-key calc-mode-map "sr" 'calc-recall) |
|---|
| 429 |
(define-key calc-mode-map "ss" 'calc-store) |
|---|
| 430 |
(define-key calc-mode-map "st" 'calc-store-into) |
|---|
| 431 |
(define-key calc-mode-map "su" 'calc-unstore) |
|---|
| 432 |
(define-key calc-mode-map "sx" 'calc-store-exchange) |
|---|
| 433 |
(define-key calc-mode-map "sA" 'calc-edit-AlgSimpRules) |
|---|
| 434 |
(define-key calc-mode-map "sD" 'calc-edit-Decls) |
|---|
| 435 |
(define-key calc-mode-map "sE" 'calc-edit-EvalRules) |
|---|
| 436 |
(define-key calc-mode-map "sF" 'calc-edit-FitRules) |
|---|
| 437 |
(define-key calc-mode-map "sG" 'calc-edit-GenCount) |
|---|
| 438 |
(define-key calc-mode-map "sH" 'calc-edit-Holidays) |
|---|
| 439 |
(define-key calc-mode-map "sI" 'calc-edit-IntegLimit) |
|---|
| 440 |
(define-key calc-mode-map "sL" 'calc-edit-LineStyles) |
|---|
| 441 |
(define-key calc-mode-map "sP" 'calc-edit-PointStyles) |
|---|
| 442 |
(define-key calc-mode-map "sR" 'calc-edit-PlotRejects) |
|---|
| 443 |
(define-key calc-mode-map "sS" 'calc-sin) |
|---|
| 444 |
(define-key calc-mode-map "sT" 'calc-edit-TimeZone) |
|---|
| 445 |
(define-key calc-mode-map "sU" 'calc-edit-Units) |
|---|
| 446 |
(define-key calc-mode-map "sX" 'calc-edit-ExtSimpRules) |
|---|
| 447 |
(define-key calc-mode-map "s+" 'calc-store-plus) |
|---|
| 448 |
(define-key calc-mode-map "s-" 'calc-store-minus) |
|---|
| 449 |
(define-key calc-mode-map "s*" 'calc-store-times) |
|---|
| 450 |
(define-key calc-mode-map "s/" 'calc-store-div) |
|---|
| 451 |
(define-key calc-mode-map "s^" 'calc-store-power) |
|---|
| 452 |
(define-key calc-mode-map "s|" 'calc-store-concat) |
|---|
| 453 |
(define-key calc-mode-map "s&" 'calc-store-inv) |
|---|
| 454 |
(define-key calc-mode-map "s[" 'calc-store-decr) |
|---|
| 455 |
(define-key calc-mode-map "s]" 'calc-store-incr) |
|---|
| 456 |
(define-key calc-mode-map "s:" 'calc-assign) |
|---|
| 457 |
(define-key calc-mode-map "s=" 'calc-evalto) |
|---|
| 458 |
|
|---|
| 459 |
(define-key calc-mode-map "t" nil) |
|---|
| 460 |
(define-key calc-mode-map "t?" 'calc-t-prefix-help) |
|---|
| 461 |
(define-key calc-mode-map "tb" 'calc-trail-backward) |
|---|
| 462 |
(define-key calc-mode-map "td" 'calc-trail-display) |
|---|
| 463 |
(define-key calc-mode-map "tf" 'calc-trail-forward) |
|---|
| 464 |
(define-key calc-mode-map "th" 'calc-trail-here) |
|---|
| 465 |
(define-key calc-mode-map "ti" 'calc-trail-in) |
|---|
| 466 |
(define-key calc-mode-map "tk" 'calc-trail-kill) |
|---|
| 467 |
(define-key calc-mode-map "tm" 'calc-trail-marker) |
|---|
| 468 |
(define-key calc-mode-map "tn" 'calc-trail-next) |
|---|
| 469 |
(define-key calc-mode-map "to" 'calc-trail-out) |
|---|
| 470 |
(define-key calc-mode-map "tp" 'calc-trail-previous) |
|---|
| 471 |
(define-key calc-mode-map "tr" 'calc-trail-isearch-backward) |
|---|
| 472 |
(define-key calc-mode-map "ts" 'calc-trail-isearch-forward) |
|---|
| 473 |
(define-key calc-mode-map "ty" 'calc-trail-yank) |
|---|
| 474 |
(define-key calc-mode-map "t[" 'calc-trail-first) |
|---|
| 475 |
(define-key calc-mode-map "t]" 'calc-trail-last) |
|---|
| 476 |
(define-key calc-mode-map "t<" 'calc-trail-scroll-left) |
|---|
| 477 |
(define-key calc-mode-map "t>" 'calc-trail-scroll-right) |
|---|
| 478 |
(define-key calc-mode-map "t{" 'calc-trail-backward) |
|---|
| 479 |
(define-key calc-mode-map "t}" 'calc-trail-forward) |
|---|
| 480 |
(define-key calc-mode-map "t." 'calc-full-trail-vectors) |
|---|
| 481 |
(define-key calc-mode-map "tC" 'calc-convert-time-zones) |
|---|
| 482 |
(define-key calc-mode-map "tD" 'calc-date) |
|---|
| 483 |
(define-key calc-mode-map "tI" 'calc-inc-month) |
|---|
| 484 |
(define-key calc-mode-map "tJ" 'calc-julian) |
|---|
| 485 |
(define-key calc-mode-map "tM" 'calc-new-month) |
|---|
| 486 |
(define-key calc-mode-map "tN" 'calc-now) |
|---|
| 487 |
(define-key calc-mode-map "tP" 'calc-date-part) |
|---|
| 488 |
(define-key calc-mode-map "tT" 'calc-tan) |
|---|
| 489 |
(define-key calc-mode-map "tU" 'calc-unix-time) |
|---|
| 490 |
(define-key calc-mode-map "tW" 'calc-new-week) |
|---|
| 491 |
(define-key calc-mode-map "tY" 'calc-new-year) |
|---|
| 492 |
(define-key calc-mode-map "tZ" 'calc-time-zone) |
|---|
| 493 |
(define-key calc-mode-map "t+" 'calc-business-days-plus) |
|---|
| 494 |
(define-key calc-mode-map "t-" 'calc-business-days-minus) |
|---|
| 495 |
|
|---|
| 496 |
(define-key calc-mode-map "u" 'nil) |
|---|
| 497 |
(define-key calc-mode-map "u?" 'calc-u-prefix-help) |
|---|
| 498 |
(define-key calc-mode-map "ua" 'calc-autorange-units) |
|---|
| 499 |
(define-key calc-mode-map "ub" 'calc-base-units) |
|---|
| 500 |
(define-key calc-mode-map "uc" 'calc-convert-units) |
|---|
| 501 |
(define-key calc-mode-map "ud" 'calc-define-unit) |
|---|
| 502 |
(define-key calc-mode-map "ue" 'calc-explain-units) |
|---|
| 503 |
(define-key calc-mode-map "ug" 'calc-get-unit-definition) |
|---|
| 504 |
(define-key calc-mode-map "up" 'calc-permanent-units) |
|---|
| 505 |
(define-key calc-mode-map "ur" 'calc-remove-units) |
|---|
| 506 |
(define-key calc-mode-map "us" 'calc-simplify-units) |
|---|
| 507 |
(define-key calc-mode-map "ut" 'calc-convert-temperature) |
|---|
| 508 |
(define-key calc-mode-map "uu" 'calc-undefine-unit) |
|---|
| 509 |
(define-key calc-mode-map "uv" 'calc-enter-units-table) |
|---|
| 510 |
(define-key calc-mode-map "ux" 'calc-extract-units) |
|---|
| 511 |
(define-key calc-mode-map "uV" 'calc-view-units-table) |
|---|
| 512 |
(define-key calc-mode-map "uC" 'calc-vector-covariance) |
|---|
| 513 |
(define-key calc-mode-map "uG" 'calc-vector-geometric-mean) |
|---|
| 514 |
(define-key calc-mode-map "uM" 'calc-vector-mean) |
|---|
| 515 |
(define-key calc-mode-map "uN" 'calc-vector-min) |
|---|
| 516 |
(define-key calc-mode-map "uS" 'calc-vector-sdev) |
|---|
| 517 |
(define-key calc-mode-map "uU" 'calc-undo) |
|---|
| 518 |
(define-key calc-mode-map "uX" 'calc-vector-max) |
|---|
| 519 |
(define-key calc-mode-map "u#" 'calc-vector-count) |
|---|
| 520 |
(define-key calc-mode-map "u+" 'calc-vector-sum) |
|---|
| 521 |
(define-key calc-mode-map "u*" 'calc-vector-product) |
|---|
| 522 |
|
|---|
| 523 |
(define-key calc-mode-map "v" 'nil) |
|---|
| 524 |
(define-key calc-mode-map "v?" 'calc-v-prefix-help) |
|---|
| 525 |
(define-key calc-mode-map "va" 'calc-arrange-vector) |
|---|
| 526 |
(define-key calc-mode-map "vb" 'calc-build-vector) |
|---|
| 527 |
(define-key calc-mode-map "vc" 'calc-mcol) |
|---|
| 528 |
(define-key calc-mode-map "vd" 'calc-diag) |
|---|
| 529 |
(define-key calc-mode-map "ve" 'calc-expand-vector) |
|---|
| 530 |
(define-key calc-mode-map "vf" 'calc-vector-find) |
|---|
| 531 |
(define-key calc-mode-map "vh" 'calc-head) |
|---|
| 532 |
(define-key calc-mode-map "vi" 'calc-ident) |
|---|
| 533 |
(define-key calc-mode-map "vk" 'calc-cons) |
|---|
| 534 |
(define-key calc-mode-map "vl" 'calc-vlength) |
|---|
| 535 |
(define-key calc-mode-map "vm" 'calc-mask-vector) |
|---|
| 536 |
(define-key calc-mode-map "vn" 'calc-rnorm) |
|---|
| 537 |
(define-key calc-mode-map "vp" 'calc-pack) |
|---|
| 538 |
(define-key calc-mode-map "vr" 'calc-mrow) |
|---|
| 539 |
(define-key calc-mode-map "vs" 'calc-subvector) |
|---|
| 540 |
(define-key calc-mode-map "vt" 'calc-transpose) |
|---|
| 541 |
(define-key calc-mode-map "vu" 'calc-unpack) |
|---|
| 542 |
(define-key calc-mode-map "vv" 'calc-reverse-vector) |
|---|
| 543 |
(define-key calc-mode-map "vx" 'calc-index) |
|---|
| 544 |
(define-key calc-mode-map "vA" 'calc-apply) |
|---|
| 545 |
(define-key calc-mode-map "vC" 'calc-cross) |
|---|
| 546 |
(define-key calc-mode-map "vD" 'calc-mdet) |
|---|
| 547 |
(define-key calc-mode-map "vE" 'calc-set-enumerate) |
|---|
| 548 |
(define-key calc-mode-map "vF" 'calc-set-floor) |
|---|
| 549 |
(define-key calc-mode-map "vG" 'calc-grade) |
|---|
| 550 |
(define-key calc-mode-map "vH" 'calc-histogram) |
|---|
| 551 |
(define-key calc-mode-map "vI" 'calc-inner-product) |
|---|
| 552 |
(define-key calc-mode-map "vJ" 'calc-conj-transpose) |
|---|
| 553 |
(define-key calc-mode-map "vL" 'calc-mlud) |
|---|
| 554 |
(define-key calc-mode-map "vM" 'calc-map) |
|---|
| 555 |
(define-key calc-mode-map "vN" 'calc-cnorm) |
|---|
| 556 |
(define-key calc-mode-map "vO" 'calc-outer-product) |
|---|
| 557 |
(define-key calc-mode-map "vR" 'calc-reduce) |
|---|
| 558 |
(define-key calc-mode-map "vS" 'calc-sort) |
|---|
| 559 |
(define-key calc-mode-map "vT" 'calc-mtrace) |
|---|
| 560 |
(define-key calc-mode-map "vU" 'calc-accumulate) |
|---|
| 561 |
(define-key calc-mode-map "vV" 'calc-set-union) |
|---|
| 562 |
(define-key calc-mode-map "vX" 'calc-set-xor) |
|---|
| 563 |
(define-key calc-mode-map "v^" 'calc-set-intersect) |
|---|
| 564 |
(define-key calc-mode-map "v-" 'calc-set-difference) |
|---|
| 565 |
(define-key calc-mode-map "v~" 'calc-set-complement) |
|---|
| 566 |
(define-key calc-mode-map "v:" 'calc-set-span) |
|---|
| 567 |
(define-key calc-mode-map "v#" 'calc-set-cardinality) |
|---|
| 568 |
(define-key calc-mode-map "v+" 'calc-remove-duplicates) |
|---|
| 569 |
(define-key calc-mode-map "v&" 'calc-inv) |
|---|
| 570 |
(define-key calc-mode-map "v<" 'calc-matrix-left-justify) |
|---|
| 571 |
(define-key calc-mode-map "v=" 'calc-matrix-center-justify) |
|---|
| 572 |
(define-key calc-mode-map "v>" 'calc-matrix-right-justify) |
|---|
| 573 |
(define-key calc-mode-map "v." 'calc-full-vectors) |
|---|
| 574 |
(define-key calc-mode-map "v/" 'calc-break-vectors) |
|---|
| 575 |
(define-key calc-mode-map "v," 'calc-vector-commas) |
|---|
| 576 |
(define-key calc-mode-map "v[" 'calc-vector-brackets) |
|---|
| 577 |
(define-key calc-mode-map "v]" 'calc-matrix-brackets) |
|---|
| 578 |
(define-key calc-mode-map "v{" 'calc-vector-braces) |
|---|
| 579 |
(define-key calc-mode-map "v}" 'calc-matrix-brackets) |
|---|
| 580 |
(define-key calc-mode-map "v(" 'calc-vector-parens) |
|---|
| 581 |
(define-key calc-mode-map "v)" 'calc-matrix-brackets) |
|---|
| 582 |
|
|---|
| 583 |
|
|---|
| 584 |
|
|---|
| 585 |
(define-key calc-mode-map "V" (lookup-key calc-mode-map "v")) |
|---|
| 586 |
|
|---|
| 587 |
(define-key calc-mode-map "z" 'nil) |
|---|
| 588 |
(define-key calc-mode-map "z?" 'calc-z-prefix-help) |
|---|
| 589 |
|
|---|
| 590 |
(define-key calc-mode-map "Z" 'nil) |
|---|
| 591 |
(define-key calc-mode-map "Z?" 'calc-shift-Z-prefix-help) |
|---|
| 592 |
(define-key calc-mode-map "ZC" 'calc-user-define-composition) |
|---|
| 593 |
(define-key calc-mode-map "ZD" 'calc-user-define) |
|---|
| 594 |
(define-key calc-mode-map "ZE" 'calc-user-define-edit) |
|---|
| 595 |
(define-key calc-mode-map "ZF" 'calc-user-define-formula) |
|---|
| 596 |
(define-key calc-mode-map "ZG" 'calc-get-user-defn) |
|---|
| 597 |
(define-key calc-mode-map "ZI" 'calc-user-define-invocation) |
|---|
| 598 |
(define-key calc-mode-map "ZK" 'calc-user-define-kbd-macro) |
|---|
| 599 |
(define-key calc-mode-map "ZP" 'calc-user-define-permanent) |
|---|
| 600 |
(define-key calc-mode-map "ZS" 'calc-edit-user-syntax) |
|---|
| 601 |
(define-key calc-mode-map "ZT" 'calc-timing) |
|---|
| 602 |
(define-key calc-mode-map "ZU" 'calc-user-undefine) |
|---|
| 603 |
(define-key calc-mode-map "Z[" 'calc-kbd-if) |
|---|
| 604 |
(define-key calc-mode-map "Z:" 'calc-kbd-else) |
|---|
| 605 |
(define-key calc-mode-map "Z|" 'calc-kbd-else-if) |
|---|
| 606 |
(define-key calc-mode-map "Z]" 'calc-kbd-end-if) |
|---|
| 607 |
(define-key calc-mode-map "Z<" 'calc-kbd-repeat) |
|---|
| 608 |
(define-key calc-mode-map "Z>" 'calc-kbd-end-repeat) |
|---|
| 609 |
(define-key calc-mode-map "Z(" 'calc-kbd-for) |
|---|
| 610 |
(define-key calc-mode-map "Z)" 'calc-kbd-end-for) |
|---|
| 611 |
(define-key calc-mode-map "Z{" 'calc-kbd-loop) |
|---|
| 612 |
(define-key calc-mode-map "Z}" 'calc-kbd-end-loop) |
|---|
| 613 |
(define-key calc-mode-map "Z/" 'calc-kbd-break) |
|---|
| 614 |
(define-key calc-mode-map "Z`" 'calc-kbd-push) |
|---|
| 615 |
(define-key calc-mode-map "Z'" 'calc-kbd-pop) |
|---|
| 616 |
(define-key calc-mode-map "Z=" 'calc-kbd-report) |
|---|
| 617 |
(define-key calc-mode-map "Z#" 'calc-kbd-query) |
|---|
| 618 |
|
|---|
| 619 |
(calc-init-prefixes) |
|---|
| 620 |
|
|---|
| 621 |
(mapcar (function |
|---|
| 622 |
(lambda (x) |
|---|
| 623 |
(define-key calc-mode-map (format "c%c" x) 'calc-clean-num) |
|---|
| 624 |
(define-key calc-mode-map (format "j%c" x) 'calc-select-part) |
|---|
| 625 |
(define-key calc-mode-map (format "r%c" x) 'calc-recall-quick) |
|---|
| 626 |
(define-key calc-mode-map (format "s%c" x) 'calc-store-quick) |
|---|
| 627 |
(define-key calc-mode-map (format "t%c" x) 'calc-store-into-quick) |
|---|
| 628 |
(define-key calc-mode-map (format "u%c" x) 'calc-quick-units))) |
|---|
| 629 |
"0123456789") |
|---|
| 630 |
|
|---|
| 631 |
(let ((i ?A)) |
|---|
| 632 |
(while (<= i ?z) |
|---|
| 633 |
(if (eq (car-safe (aref (nth 1 calc-mode-map) i)) 'keymap) |
|---|
| 634 |
(aset (nth 1 calc-mode-map) i |
|---|
| 635 |
(cons 'keymap (cons (cons ?\e (aref (nth 1 calc-mode-map) i)) |
|---|
| 636 |
(cdr (aref (nth 1 calc-mode-map) i)))))) |
|---|
| 637 |
(setq i (1+ i)))) |
|---|
| 638 |
|
|---|
| 639 |
(setq calc-alg-map (copy-keymap calc-mode-map) |
|---|
| 640 |
calc-alg-esc-map (copy-keymap esc-map)) |
|---|
| 641 |
(let ((i 32)) |
|---|
| 642 |
(while (< i 127) |
|---|
| 643 |
(or (memq i '(?' ?` ?= ??)) |
|---|
| 644 |
(aset (nth 1 calc-alg-map) i 'calc-auto-algebraic-entry)) |
|---|
| 645 |
(or (memq i '(?# ?x ?0 ?1 ?2 ?3 ?4 ?5 ?6 ?7 ?8 ?9)) |
|---|
| 646 |
(aset (nth 1 calc-alg-esc-map) i (aref (nth 1 calc-mode-map) i))) |
|---|
| 647 |
(setq i (1+ i)))) |
|---|
| 648 |
(define-key calc-alg-map "\e" calc-alg-esc-map) |
|---|
| 649 |
(define-key calc-alg-map "\e\t" 'calc-roll-up) |
|---|
| 650 |
(define-key calc-alg-map "\e\C-m" 'calc-last-args-stub) |
|---|
| 651 |
(define-key calc-alg-map "\e\177" 'calc-pop-above) |
|---|
| 652 |
|
|---|
| 653 |
|
|---|
| 654 |
(mapcar (function (lambda (x) |
|---|
| 655 |
(mapcar (function (lambda (func) |
|---|
| 656 |
(autoload func (car x)))) (cdr x)))) |
|---|
| 657 |
'( |
|---|
| 658 |
|
|---|
| 659 |
("calc-alg" calc-has-rules math-defsimplify |
|---|
| 660 |
calc-modify-simplify-mode calcFunc-collect calcFunc-esimplify |
|---|
| 661 |
calcFunc-islin calcFunc-islinnt calcFunc-lin calcFunc-linnt |
|---|
| 662 |
calcFunc-simplify calcFunc-subst calcFunc-powerexpand math-beforep |
|---|
| 663 |
math-build-polynomial-expr math-expand-formula math-expr-contains |
|---|
| 664 |
math-expr-contains-count math-expr-depends math-expr-height |
|---|
| 665 |
math-expr-subst math-expr-weight math-integer-plus math-is-linear |
|---|
| 666 |
math-is-multiple math-is-polynomial math-linear-in math-multiple-of |
|---|
| 667 |
math-poly-depends math-poly-mix math-poly-mul |
|---|
| 668 |
math-poly-simplify math-poly-zerop math-polynomial-base |
|---|
| 669 |
math-polynomial-p math-recompile-eval-rules math-simplify |
|---|
| 670 |
math-simplify-exp math-simplify-extended math-simplify-sqrt |
|---|
| 671 |
math-to-simple-fraction) |
|---|
| 672 |
|
|---|
| 673 |
("calcalg2" calcFunc-asum calcFunc-deriv |
|---|
| 674 |
calcFunc-ffinv calcFunc-finv calcFunc-fsolve calcFunc-gpoly |
|---|
| 675 |
calcFunc-integ calcFunc-poly calcFunc-prod calcFunc-roots |
|---|
| 676 |
calcFunc-solve calcFunc-sum calcFunc-table calcFunc-taylor |
|---|
| 677 |
calcFunc-tderiv math-expr-calls math-integral-q02 math-integral-q12 |
|---|
| 678 |
math-integral-rational-funcs math-lcm-denoms math-looks-evenp |
|---|
| 679 |
math-poly-all-roots math-prod-rec math-reject-solution math-solve-eqn |
|---|
| 680 |
math-solve-for math-sum-rec math-try-integral) |
|---|
| 681 |
|
|---|
| 682 |
("calcalg3" calcFunc-efit calcFunc-fit |
|---|
| 683 |
calcFunc-fitdummy calcFunc-fitparam calcFunc-fitvar |
|---|
| 684 |
calcFunc-hasfitparams calcFunc-hasfitvars calcFunc-maximize |
|---|
| 685 |
calcFunc-minimize calcFunc-ninteg calcFunc-polint calcFunc-ratint |
|---|
| 686 |
calcFunc-root calcFunc-wmaximize calcFunc-wminimize calcFunc-wroot |
|---|
| 687 |
calcFunc-xfit math-find-minimum math-find-root math-ninteg-evaluate |
|---|
| 688 |
math-ninteg-midpoint math-ninteg-romberg math-poly-interp) |
|---|
| 689 |
|
|---|
| 690 |
("calc-arith" calcFunc-abs calcFunc-abssqr |
|---|
| 691 |
calcFunc-add calcFunc-ceil calcFunc-decr calcFunc-deven calcFunc-dimag |
|---|
| 692 |
calcFunc-dint calcFunc-div calcFunc-dnatnum calcFunc-dneg |
|---|
| 693 |
calcFunc-dnonneg calcFunc-dnonzero calcFunc-dnumint calcFunc-dodd |
|---|
| 694 |
calcFunc-dpos calcFunc-drange calcFunc-drat calcFunc-dreal |
|---|
| 695 |
calcFunc-dscalar calcFunc-fceil calcFunc-ffloor calcFunc-float |
|---|
| 696 |
calcFunc-fround calcFunc-frounde calcFunc-froundu calcFunc-ftrunc |
|---|
| 697 |
calcFunc-idiv calcFunc-incr calcFunc-ldiv calcFunc-mant calcFunc-max calcFunc-min |
|---|
| 698 |
calcFunc-mod calcFunc-mul calcFunc-neg calcFunc-percent calcFunc-pow |
|---|
| 699 |
calcFunc-relch calcFunc-round calcFunc-rounde calcFunc-roundu |
|---|
| 700 |
calcFunc-scf calcFunc-sub calcFunc-xpon math-abs math-abs-approx |
|---|
| 701 |
math-add-objects-fancy math-add-or-sub math-add-symb-fancy |
|---|
| 702 |
math-ceiling math-combine-prod math-combine-sum math-div-by-zero |
|---|
| 703 |
math-div-objects-fancy math-div-symb-fancy math-div-zero |
|---|
| 704 |
math-float-fancy math-floor-fancy math-floor-special math-guess-if-neg |
|---|
| 705 |
math-intv-constp math-known-evenp math-known-imagp math-known-integerp |
|---|
| 706 |
math-known-matrixp math-known-negp math-known-nonnegp |
|---|
| 707 |
math-known-nonposp math-known-nonzerop math-known-num-integerp |
|---|
| 708 |
math-known-oddp math-known-posp math-known-realp math-known-scalarp |
|---|
| 709 |
math-max math-min math-mod-fancy math-mul-float math-mul-objects-fancy |
|---|
| 710 |
math-mul-or-div math-mul-symb-fancy math-mul-zero math-neg-fancy |
|---|
| 711 |
math-neg-float math-okay-neg math-possible-signs math-possible-types |
|---|
| 712 |
math-pow-fancy math-pow-mod math-pow-of-zero math-pow-zero |
|---|
| 713 |
math-quarter-integer math-round math-setup-declarations math-sqr |
|---|
| 714 |
math-sqr-float math-trunc-fancy math-trunc-special) |
|---|
| 715 |
|
|---|
| 716 |
("calc-bin" calcFunc-and calcFunc-ash |
|---|
| 717 |
calcFunc-clip calcFunc-diff calcFunc-lsh calcFunc-not calcFunc-or |
|---|
| 718 |
calcFunc-rash calcFunc-rot calcFunc-rsh calcFunc-xor math-clip |
|---|
| 719 |
math-compute-max-digits math-convert-radix-digits math-float-parts |
|---|
| 720 |
math-format-bignum-binary math-format-bignum-hex |
|---|
| 721 |
math-format-bignum-octal math-format-bignum-radix math-format-binary |
|---|
| 722 |
math-format-radix math-format-radix-float math-integer-log2 |
|---|
| 723 |
math-power-of-2 math-radix-float-power) |
|---|
| 724 |
|
|---|
| 725 |
("calc-comb" calc-report-prime-test |
|---|
| 726 |
calcFunc-choose calcFunc-dfact calcFunc-egcd calcFunc-fact |
|---|
| 727 |
calcFunc-gcd calcFunc-lcm calcFunc-moebius calcFunc-nextprime |
|---|
| 728 |
calcFunc-perm calcFunc-prevprime calcFunc-prfac calcFunc-prime |
|---|
| 729 |
calcFunc-random calcFunc-shuffle calcFunc-stir1 calcFunc-stir2 |
|---|
| 730 |
calcFunc-totient math-init-random-base math-member math-prime-test |
|---|
| 731 |
math-random-base) |
|---|
| 732 |
|
|---|
| 733 |
("calccomp" calcFunc-cascent calcFunc-cdescent |
|---|
| 734 |
calcFunc-cheight calcFunc-cwidth math-comp-ascent math-comp-descent |
|---|
| 735 |
math-comp-height math-comp-width math-compose-expr |
|---|
| 736 |
math-composition-to-string math-stack-value-offset-fancy |
|---|
| 737 |
math-vector-is-string math-vector-to-string) |
|---|
| 738 |
|
|---|
| 739 |
("calc-cplx" calcFunc-arg calcFunc-conj |
|---|
| 740 |
calcFunc-im calcFunc-polar calcFunc-re calcFunc-rect math-complex |
|---|
| 741 |
math-fix-circular math-imaginary math-imaginary-i math-normalize-polar |
|---|
| 742 |
math-polar math-want-polar) |
|---|
| 743 |
|
|---|
| 744 |
("calc-embed" calc-do-embedded |
|---|
| 745 |
calc-do-embedded-activate calc-embedded-evaluate-expr |
|---|
| 746 |
calc-embedded-modes-change calc-embedded-var-change |
|---|
| 747 |
calc-embedded-preserve-modes) |
|---|
| 748 |
|
|---|
| 749 |
("calc-fin" calc-to-percentage calcFunc-ddb |
|---|
| 750 |
calcFunc-fv calcFunc-fvb calcFunc-fvl calcFunc-irr calcFunc-irrb |
|---|
| 751 |
calcFunc-nper calcFunc-nperb calcFunc-nperl calcFunc-npv calcFunc-npvb |
|---|
| 752 |
calcFunc-pmt calcFunc-pmtb calcFunc-pv calcFunc-pvb calcFunc-pvl |
|---|
| 753 |
calcFunc-rate calcFunc-rateb calcFunc-ratel calcFunc-sln calcFunc-syd) |
|---|
| 754 |
|
|---|
| 755 |
("calc-forms" calcFunc-badd calcFunc-bsub |
|---|
| 756 |
calcFunc-date calcFunc-day calcFunc-dsadj calcFunc-hms |
|---|
| 757 |
calcFunc-holiday calcFunc-hour calcFunc-incmonth calcFunc-incyear |
|---|
| 758 |
calcFunc-intv calcFunc-julian calcFunc-makemod calcFunc-minute |
|---|
| 759 |
calcFunc-month calcFunc-newmonth calcFunc-newweek calcFunc-newyear |
|---|
| 760 |
calcFunc-now calcFunc-pwday calcFunc-sdev calcFunc-second |
|---|
| 761 |
calcFunc-time calcFunc-tzconv calcFunc-tzone calcFunc-unixtime |
|---|
| 762 |
calcFunc-weekday calcFunc-year calcFunc-yearday math-combine-intervals |
|---|
| 763 |
math-date-parts math-date-to-dt math-div-mod math-dt-to-date |
|---|
| 764 |
math-format-date math-from-business-day math-from-hms math-make-intv |
|---|
| 765 |
math-make-mod math-make-sdev math-mod-intv math-normalize-hms |
|---|
| 766 |
math-normalize-mod math-parse-date math-read-angle-brackets |
|---|
| 767 |
math-setup-add-holidays math-setup-holidays math-setup-year-holidays |
|---|
| 768 |
math-sort-intv math-to-business-day math-to-hms) |
|---|
| 769 |
|
|---|
| 770 |
("calc-frac" calc-add-fractions |
|---|
| 771 |
calc-div-fractions calc-mul-fractions calcFunc-fdiv calcFunc-frac |
|---|
| 772 |
math-make-frac) |
|---|
| 773 |
|
|---|
| 774 |
("calc-funcs" calc-prob-dist calcFunc-bern |
|---|
| 775 |
calcFunc-besJ calcFunc-besY calcFunc-beta calcFunc-betaB |
|---|
| 776 |
calcFunc-betaI calcFunc-erf calcFunc-erfc calcFunc-euler |
|---|
| 777 |
calcFunc-gamma calcFunc-gammaG calcFunc-gammaP calcFunc-gammaQ |
|---|
| 778 |
calcFunc-gammag calcFunc-ltpb calcFunc-ltpc calcFunc-ltpf |
|---|
| 779 |
calcFunc-ltpn calcFunc-ltpp calcFunc-ltpt calcFunc-utpb calcFunc-utpc |
|---|
| 780 |
calcFunc-utpf calcFunc-utpn calcFunc-utpp calcFunc-utpt |
|---|
| 781 |
math-bernoulli-number math-gammap1-raw) |
|---|
| 782 |
|
|---|
| 783 |
("calc-graph" calc-graph-show-tty) |
|---|
| 784 |
|
|---|
| 785 |
("calc-incom" calc-digit-dots) |
|---|
| 786 |
|
|---|
| 787 |
("calc-keypd" calc-do-keypad |
|---|
| 788 |
calc-keypad-x-left-click calc-keypad-x-middle-click |
|---|
| 789 |
calc-keypad-x-right-click) |
|---|
| 790 |
|
|---|
| 791 |
("calc-lang" calc-set-language |
|---|
| 792 |
math-read-big-balance math-read-big-rec) |
|---|
| 793 |
|
|---|
| 794 |
("calc-map" calc-get-operator calcFunc-accum |
|---|
| 795 |
calcFunc-afixp calcFunc-anest calcFunc-apply calcFunc-call |
|---|
| 796 |
calcFunc-fixp calcFunc-inner calcFunc-map calcFunc-mapa calcFunc-mapc |
|---|
| 797 |
calcFunc-mapd calcFunc-mapeq calcFunc-mapeqp calcFunc-mapeqr |
|---|
| 798 |
calcFunc-mapr calcFunc-nest calcFunc-outer calcFunc-raccum |
|---|
| 799 |
calcFunc-reduce calcFunc-reducea calcFunc-reducec calcFunc-reduced |
|---|
| 800 |
calcFunc-reducer calcFunc-rreduce calcFunc-rreducea calcFunc-rreducec |
|---|
| 801 |
calcFunc-rreduced calcFunc-rreducer math-build-call |
|---|
| 802 |
math-calcFunc-to-var math-multi-subst math-multi-subst-rec |
|---|
| 803 |
math-var-to-calcFunc) |
|---|
| 804 |
|
|---|
| 805 |
("calc-mtx" calcFunc-det calcFunc-lud calcFunc-tr |
|---|
| 806 |
math-col-matrix math-lud-solve math-matrix-inv-raw math-matrix-lud |
|---|
| 807 |
math-mul-mat-vec math-mul-mats math-row-matrix) |
|---|
| 808 |
|
|---|
| 809 |
("calc-math" calcFunc-alog calcFunc-arccos |
|---|
| 810 |
calcFunc-arccosh calcFunc-arcsin calcFunc-arcsincos calcFunc-arcsinh |
|---|
| 811 |
calcFunc-arctan calcFunc-arctan2 calcFunc-arctanh calcFunc-csc |
|---|
| 812 |
calcFunc-csch calcFunc-cos calcFunc-cosh calcFunc-cot calcFunc-coth |
|---|
| 813 |
calcFunc-deg calcFunc-exp calcFunc-exp10 calcFunc-expm1 |
|---|
| 814 |
calcFunc-hypot calcFunc-ilog calcFunc-isqrt calcFunc-ln calcFunc-lnp1 |
|---|
| 815 |
calcFunc-log calcFunc-log10 calcFunc-nroot calcFunc-rad calcFunc-sec |
|---|
| 816 |
calcFunc-sech calcFunc-sin |
|---|