Commit graph

791 commits

Author SHA1 Message Date
Jay Belanger
ce805efac0 Move require to end of file.
(calc-info-filename, calc-autoload-directory, calc-extensions-loaded):
Remove unnecessary variable.
(calc-do-dispatch, calc-mode, calc-check-defines, calc-create-buffer)
(calc, calc-keypad, full-calc-keypad, calc-do, calc-normalize)
(calc-binary-op, calc-unary-op, calcDigit-start, calcDigit-key)
(math-normalize, math-add, math-mul, math-div,
(math-format-stack-value, math-stack-value-offset, math-format-value)
(math-format-flat-expr, math-format-number, math-format-bignum)
(math-read-number, calc-grab-region, calc-grab-rectangle)
(calc-grab-sum-down, calc-grab-sum-across, calc-embedded, defmath)
(calc-check-defines): Replace calc-need-macros by appropriate require.
2004-11-29 06:00:07 +00:00
Jay Belanger
537a762d4b (calc-user-define-formula, calc-do-defmath): Replace calc-need-macros by
appropriate require.
2004-11-29 05:58:45 +00:00
Jay Belanger
c6d3240529 (calc-do-handle-whys, calc-last-args-stub, calc-missing-key)
(calc-shift-Y-prefix-help, math-concat, math-trunc, math-floor)
(calcFunc-inv, math-mod, math-pow): Replace calc-extensions by
appropriate require.
(calc-power): Replace calc-extensions-loaded by appropriate featurep.
2004-11-29 05:57:46 +00:00
Jay Belanger
f50dfd02cb Move provide to end of file.
(calc-need-macros): Remove unnecessary function.
2004-11-29 05:56:56 +00:00
Jay Belanger
5eb3eedabb Remove unnecessary eval-when-compile.
(calc-do-quick-calc, calc-do-calc-eval, calc-alg-entry)
(math-read-expr-level, calc-check-user-syntax, math-read-factor):
Replace calls to calc-extensions by appropriate require,
replace calc-extensions-loaded by appropriate featurep.
2004-11-29 05:56:06 +00:00
Jay Belanger
6697b53cd3 Move require to end of file.
Remove redundant loading of calc.
(calc-extensions-loaded): Remove unnecessary variable.
(calc-extensions): Remove unnecessary function.
(calc-load-everything): Replace calc-need-macros by appropriate require.
2004-11-29 05:54:53 +00:00
Jay Belanger
79d2746f47 (math-expr-parts, math-try-solve-sign, math-solve-b, math-int-factors)
(math-double-roots): Declare them (for real this time).
2004-11-27 04:13:08 +00:00
Jay Belanger
388df0be56 (math-exp-pos, math-exp-str, math-exp-old-pos, math-exp-token)
(math-exp-keep-spaces, math-expr-data): Declare them.
2004-11-27 04:11:13 +00:00
Jay Belanger
0aba68f8ca (math-expr-data, math-expr-token, math-exp-old-pos): Declare them. 2004-11-27 04:10:15 +00:00
Jay Belanger
90b4409729 (calc-command-flags, calc-gnuplot-buffer, calc-gnuplot-input)
(math-normalize-a, math-integral-cache): Declare them.
2004-11-27 04:09:24 +00:00
Jay Belanger
d37f2979c6 (calc-eval-error): Declare and initialize the variable.
(calc-eval-error): Don't check if the variable calc-eval-error is
bound.
(calc-buffer, calc-digit-value, math-expr-data): Declare them.
(math-alg-inequalities): Move declaration to earlier in the file.
2004-11-27 04:07:22 +00:00
Jay Belanger
b9bc92b4d7 (calc-embedded-update): Finish changing prev-mode to calc-embed-prev-mode. 2004-11-26 23:31:27 +00:00
Jay Belanger
d4c9536003 Removed no longer necessary file. 2004-11-26 22:44:21 +00:00
Jay Belanger
3b058174cd (calc-keep-selection): Declare it. 2004-11-26 22:39:32 +00:00
Jay Belanger
1bf345d19a (math-format-radix-float): Make pos a local variable.
(math-format-radix-float): Remove unnecessary setq.
(math-radix-float-cache): Declare it.
2004-11-26 22:39:01 +00:00
Jay Belanger
adb0a6165d (calc-original-buffer): Declare it.
(calc-embed-outer-top, calc-embed-outer-bot, calc-embed-top)
(calc-embed-bot): New variables.
(calc-do-embedded, calc-embedded-mark-formula)
(calc-embedded-find-bounds, calc-embedded-duplicate)
(calc-embedded-new-formula, calc-embedded-make-info):
Replace variables outer-top, outer-bot, bot and top by declared
variables.
(calc-embed-prev-modes): New variable.
(calc-embedded-set-modes, calc-embedded-update): Replace variable
prev-modes with declared variable.
(calc-embed-vars-used): New variable.
(calc-embedded-make-info, calc-embedded-evaluate-expr)
(calc-embedded-update, calc-embedded-find-vars): Replace variable
vars-used by declared variable.
2004-11-26 22:38:31 +00:00
Jay Belanger
c478ee0ee2 (Info-history): Declare it.
(calc-describe-key): Make calc-summary-indentation a local variable.
(calc-help-long-names): Move declaration to earlier in file.
2004-11-26 22:37:54 +00:00
Jay Belanger
53cbeb3de0 (calc-prev-char, calc-prev-prev-char, calc-digit-value): Declare them. 2004-11-26 22:37:26 +00:00
Jay Belanger
8b31b5197e (math-ms-temp, math-ms-args): New variables.
(math-multi-subst, math-multi-subst-rec): Replace variables temp and
arg by declared variables.

(calcFunc-reducer): Fixed incorrect variable.

(math-inner-mul-func, math-inner-add-func): New variables.
(calcFunc-inner, math-inner-mats): Replace variables mul-func
and add-func by declared variables.
2004-11-26 22:36:49 +00:00
Jay Belanger
4952f0be95 (calc-det-lu): New variable.
(math-det-raw, math-det-step): Replace variable lu by declared
variable.
2004-11-26 22:36:10 +00:00
Jay Belanger
3a7a4adb2d (calc-given-value, calc-store-opers): Declare them.
(calc-var-name-map): Move declaration to earlier in the file.

(calc-pv-pos): New variable.
(calc-permanent-variable, calc-insert-permanent-variable):
Replace variable pos by declared variable.
2004-11-26 22:35:35 +00:00
Jay Belanger
32bac5ed0d (calc-flush-caches): Remove unnecessary variables.
(math-lud-cache, math-log2-cache, math-radix-digits-cache)
(math-radix-float-cache-tag, math-random-cache, math-max-digits-cache)
(math-integral-cache, math-units-table, math-format-date-cache)
(math-holidays-cache-tag): Declare them.

(math-moc-func): New variable.
(math-map-over-constants, math-map-over-constants-rec):
Replace variable func by declared variable.
2004-11-26 22:34:59 +00:00
Jay Belanger
3f53a1f4df (calc-original-buffer, calc-return-buffer, calc-one-window)
(calc-edit-handler, calc-restore-trail, calc-allow-ret): Declare them.
2004-11-26 22:34:23 +00:00
Jay Belanger
866ebaa905 (math-grade-vec): New variable.
(calcFunc-grade, calcFunc-rgrade, math-grade-beforep): Replace
variable grade-vec by declared variable.
(math-rb-close): New variable.
(math-read-brackets, math-read-vector): Replace variable close by
declared variable.
2004-11-26 22:33:49 +00:00
Jay Belanger
f58af89963 (calc-last-why-command): Declare it. 2004-11-26 22:33:19 +00:00
Jay Belanger
92d7f48929 Change maintainer name. 2004-11-26 22:32:51 +00:00
Jay Belanger
3effaa28f5 Finish making previous changes. 2004-11-25 06:29:11 +00:00
Jay Belanger
95d91710e9 Finish making previous change. 2004-11-25 06:28:25 +00:00
Jay Belanger
2797124100 (calc-convert-units): Make units a local variable.
(calc-num-units, calc-den-units): New variables.
(calc-explain-units, calc-explain-units-rec): Replace variables
num-units and den-units by declared variables.
(math-cu-unit-list): New variable.
(math-build-units-table, math-compare-unit-names)
(math-convert-units, math-convert-units-rec): Replace variable
unit-list by declared variable.
(math-fbu-base, math-fbu-entry): New variables.
(math-find-base-units, math-find-base-units-rec): Replace variables
base and entry by declared variables.
(math-which-standard): New variable.
(math-to-standard-units, math-to-standard-rec): Replace variable
which-standard by declared variable.
(math-fcu-u): New variable.
(math-find-compatible-unit, math-find-compatible-unit-rec):
Replace variable u by declared variable.
(math-cu-new-units, math-cu-pure): New variables.
(math-convert-units, math-convert-units-rec): Replace variables
new-units and pure by declared variables.
(math-try-cancel-units): New variable.
(math-simplify-units-quotient): Replace variable try-cancel-units by
declared variable.
2004-11-25 05:53:35 +00:00
Jay Belanger
4fd1fc35b1 (math-poly-base-top-expr): New variable.
(math-polynomial-p1): Replace variable mpb-top-expr by declared
variable.
(math-poly-base-total-base): New variable.
(math-total-polynomial-base, math-polynomial-p1): Replace variable
mpb-total-base by declared variable.
(math-factored-vars, math-to-list): Declare it.
(math-fact-expr): New variable.
(calcFunc-factors, calcFunc-factor, math-factor-expr,
math-factor-expr-try, math-factor-expr-part): Replace variable expr by
declared variable.
(math-fet-x): New variable.
(math-factor-expr-try, math-factor-poly-coefs): Replace variable x by
declared variable.
(math-factor-poly-coefs): Make temp a local variable.
2004-11-25 05:52:38 +00:00
Jay Belanger
885e6671fc Added comment.
(math-polynomial-base): Replace variable mpb-top-expr by
math-poly-base-top-expr.
2004-11-25 05:51:40 +00:00
Jay Belanger
276d28655e (math-trunc): Replace variable prec by math-trunc-prec.
(math-floor): Replace variable prec by math-floor-prec.
2004-11-24 21:45:32 +00:00
Jay Belanger
67549a854a (math-scalar-functions, math-nonscalar-functions)
(math-scalar-if-args-functions, math-real-functions)
(math-positive-functions, math-nonnegative-functions)
(math-real-scalar-functions, math-real-if-arg-functions)
(math-integer-functions, math-num-integer-functions)
(math-rounding-functions, math-float-rounding-functions)
(math-integer-if-args-functions, math-super-types):
Move declarations to earlier in file.

(math-unit-prefixes): Declared it.

(math-floor-prec, math-trunc-prec): New variables.
(math-trunc-fancy): Replace variable prec by declared variable.
(math-floor-fancy): Replace variable prec by declared variable.

(math-com-bterms): New variable.
(math-commutative-equal, math-commutative-collect): Replace variable
bterms by declared variable.
2004-11-24 21:45:04 +00:00
Jay Belanger
ac39a77ca1 (calc-gnuplot-default-device, calc-gnuplot-default-output)
(calc-gnuplot-print-device, calc-gnuplot-print-output)
(calc-gnuplot-geometry, calc-graph-default-resolution)
(calc-graph-default-resolution-3d): Remove redundant initial values.
2004-11-24 21:44:23 +00:00
Jay Belanger
7893af2d79 (calc-embedded-active): Removed unnecessary declaration.
(calc-show-banner): Removed redundant declaration.
2004-11-24 21:43:36 +00:00
Jay Belanger
86498823f8 (math-nrf-n, math-nrf-nf, math-nrf-nfm1): New variables.
(math-nth-root-float, math-nth-root-float-iter): Replace variables
n, nf and nfm1 by declared variables.

(math-nri-n): New variable.
(math-nth-root-int, math-nth-root-int-iter): Replace variable n by
declared variable.

(calcFunc-log): Removed misplaced condition.
2004-11-24 18:01:37 +00:00
Jay Belanger
9822335996 (math-fd-date, math-fd-dt, math-fd-year, math-fd-month)
(math-fd-day, math-fd-weekday, math-fd-hour, math-fd-minute)
(math-fd-second, math-fd-bc-flag): New variables.
(math-format-date, math-format-date-part): Replace variables
date, dt, year, month, day, weekday, hour, minute, second and
bc-flag by declared variables.

(math-pd-str): New variable.
(math-parse-date, math-parse-date-word, math-parse-standard-date):
Replace variable str by declared variable.

(math-daylight-savings-hook, math-tzone-names): Move definitions
to earlier in the file.

(var-TimeZone): Declare it.

(math-exp-str, math-exp-pos): Declare them.

(math-sh-year): New variable.
(math-setup-add-holidays, math-setup-holidays)
(math-setup-year-holiday): Replace variable `year'
by declared variable.
2004-11-24 17:59:37 +00:00
Jay Belanger
f0a35df4ea (math-stack-value-offset): Replace variables c, wid and off with
math-svo-c, math-svo-wid and math-svo-off.
2004-11-24 06:01:45 +00:00
Jay Belanger
1c80b98b61 Add comment. 2004-11-24 06:00:30 +00:00
Jay Belanger
fdcf8e2b4a (math-svo-c, math-svo-wid, math-svo-off): New variables.
(math-stack-value-offset-fancy): Replace variables c, wid and off
by declared variables.

(math-comp-just, math-comp-comma-spc): New variables.
(math-compose-expr, math-compose-matrix): Replace variable just by
declared variable.

(math-comp-vector-prec): New variable.
(math-compose-expr, math-compose-matrix, math-compose-rows): Replace
variable vector-prec by declared variable.

(math-comp-left-bracket, math-comp-right-bracket, math-comp-comma): New variables.
(math-compose-expr, math-compose-rows): Replace variables left-bracket,
right-bracket and comma by declared variables.

(math-comp-full-width): New variable.
(math-comp-to-string-flat, math-comp-to-string-flat-term): Replace
variable full-width by declared variable.

(math-comp-sel-tag): Declared it.

(math-comp-highlight, math-comp-word, math-comp-level)
(math-comp-margin, math-comp-pos, math-comp-buf, math-comp-base)
(math-comp-hgt, math-comp-tag, math-comp-hpos, math-comp-vpos):
New variables.

(math-comp-to-string-flat, math-comp-to-string-flat-term)
(math-comp-sel-flat-term): Replace variables comp-highlight, comp-word,
comp-level, comp-margin, comp-pos and comp-buf by declared variables.

(math-comp-simplify, math-comp-simplify-term, math-comp-add-string)
(math-comp-add-string-sel): Replace variables comp-highlight,
comp-buf, comp-base, comp-height, comp-tag, comp-hpos and comp-vpos
by declared variables.
2004-11-24 05:59:23 +00:00
Jay Belanger
c4446fc2e9 (math-read-exprs): Filter input through math-read-preprocess-string. 2004-11-23 05:58:20 +00:00
Jay Belanger
66c2cf664e (math-read-replacement-list, math-read-superscripts): New variables.
(math-read-preprocess-string): New function.
(math-read-expr): Filter input through math-read-preprocess-string.
2004-11-23 05:56:40 +00:00
Jay Belanger
8cd2540e17 (math-read-big-lines): New variable.
(math-read-big-rec, math-read-big-char, math-read-big-emptyp)
(math-read-big-error, math-read-big-balance): Replace variable
lines by declared variable.

(math-read-big-baseline, math-read-big-h2): New variables.
(math-read-big-rec): Replace variables the-baseline and the-h2
by declared variables.

(math-read-big-rec): Fix typo.

(math-read-big-balance): Replace unbound variable by value.

(math-rb-h1, math-rb-h2, math-rb-v1, math-rb-v2): New variables.
(math-read-big-rec, math-read-big-char, math-read-big-emptyp)
(math-read-big-balance): Replace variables h1, h2, v1 and v2 by
declared variables.

(math-read-big-err-msg): New variable.
(math-read-big-error): Replace variable err-msg by declared variable.
2004-11-22 04:53:51 +00:00
Jay Belanger
c308c46341 (math-read-big-expr, math-read-big-bigp): Replace variable lines by
math-read-big-lines.
(math-read-big-expr): Replace variables the-baseline, the-h2
and err-msg by math-read-big-baseline, math-read-big-h2 and
math-read-err-msg.
(math-read-big-bigp): Replace variable h2 with math-rb-h2.
2004-11-22 04:52:48 +00:00
Jay Belanger
03cc1abafe (calc-curve-nvars, calc-curve-varnames, calc-curve-model)
(calc-curve-coefnames): New variable.
(calc-curve-fit, calc-get-fit-variables): Replace variables nvars,
varnames, model and coefnames by declared variables.

(math-root-widen): New variable.
(math-search-root, math-find-root): Replace variable root-widen by
declared variable.

(var-DUMMY): Declare it.
(math-root-vars, math-min-vars): Move the declarations to earlier in
the file.

(math-brent-min): Make d a local variable.

(math-find-minimum): Replace non-existent variable.

(math-ninteg-romberg): Remove unnecessary variable.

(math-ninteg-temp): New variable.
(math-ninteg-romberg, math-ninteg-midpoint): Replace variable
integ-temp by declared variable.

(math-fit-first-var, math-fit-first-coef, math-fit-new-coefs): New variables.
(math-general-fit): Replace variables first-var, first-coef and
new-coefs by declared variables.
(calcFunc-fitvar): Replace variable first-var by declared variable.
(calcFunc-fitparam): Replace variable first-coef by declared variable.
(calcFunc-fitdummy): Replace variable new-coefs by declared variable.

(math-all-vars-vars, math-all-vars-found): New variables.
(math-all-vars-in, math-all-vars-rec): Replace variables vars and
found by declared variable math-all-vars-vars.
2004-11-21 05:55:43 +00:00
Jay Belanger
a6cecab98a (math-integral-cache-state, calc-lang)
(calc-original-buffer): Declare them.

(calc-user-formula-alist): New variable.
(calc-user-define-formula, calc-fix-user-formula)
(calc-user-define-composition, calc-finish-formula-edit):
Replace variable alist by declared variable.

(var-q0, var-q1, var-q2, var-q3, var-q4, var-q5, var-q6)
(var-q7, var-q7, var-q8, var-q9): Declare them.
(calc-kbd-push): Don't check to see if var-q0 through var-q9
are bound.

(calcFunc-typeof): Replace undeclared variable by correct expression.

(math-exp-env): New variable.
(math-define-body, math-define-exp): Replace exp-env by declared
variable.

(math-define-exp): Replace misplaced variable by expression.
2004-11-21 05:52:41 +00:00
Jay Belanger
8416e352b1 (calc-selection-cache-entry): Moved declaration to earlier in the
file.

(calc-selection-cache-num, calc-selection-cache-comp)
(calc-selection-cache-offset, calc-selection-true-num)
(calc-final-point-line, calc-final-point-column)
(calc-original-buffer): Declare them.


(calc-fnp-op, calc-fnp-num): New variables.
(calc-find-nth-part, calc-find-nth-part-rec)
(calc-select-previous): Replace op and num by declared variables.

(calc-rsf-old, calc-rsf-new): New variables.
(calc-replace-sub-formula, calc-replace-sub-formula-rec):
Replace variables old and new by declared variables.

(calc-sel-reselect): New variable.
(calc-auto-selection, calc-enter-selection, calc-edit-selection)
(calc-sel-evaluate, calc-sel-expand-formula, calc-sel-expand-formula)
(calc-sel-mult-both-sides, calc-sel-add-both-sides):  Replace variable
reselect with declared variable.

(calc-edit-disp-trail): Declare it.
(calc-finish-selection-edit):  Replace variable disp-trail by declared
variable.
2004-11-19 22:21:18 +00:00
Jay Belanger
7fc684b392 (calc-edit-disp-trail): New variable.
(calc-edit-finish, calc-finish-stack-edit): Replace variable
disp-trail by declared variable.
2004-11-19 22:17:25 +00:00
Jay Belanger
40ead93715 (calc-rewrite-selection): Make rules a local variable.
(calc-rewr-sel): New variable.
(calc-rewrite-selection, calc-locate-selection-marker, calc-rewrite):
Use the declared variable calc-rewr-sel instead of sel.

(math-rewrite):  Use let* to declare variables.

(math-mt-many): Declare it.

(math-rewrite-whole-expr): New variable.
(math-rewrite, math-rewrite-phase): Replace variable expr by declared
variable.

(math-import-list): Declare it.

(math-rewrite-heads-heads, math-rewrite-heads-skips)
(math-rewrite-heads-blanks ): New variables.
(math-rewrite-heads, math-rewrite-heads-rec): Replace variables heads,
skips and blanks by declared variables.

(math-regs, math-num-regs, math-prog-last, math-bound-vars)
(math-conds, math-copy-neg, math-rhs, math-pattern, math-remembering)
(math-aliased-vars): Declare them.

(math-rwcomp-subst-old, math-rwcomp-subst-new)
(math-rwcomp-subst-old-func, math-rwcomp-subst-new-func):
New variables.
(math-rwcomp-substitute, math-rwcomp-subst-rec): Replace variables
old, new, old-func and new-func by declared variables.

(math-rwcomp-assoc-args, math-rwcomp-addsub-args):  Remove unnecessary
variable.

(math-rewrite-phase): Declare it.

(math-apply-rw-regs): New variable.
(math-apply-rewrites, math-rwapply-replace-regs,
math-rwapply-reg-looks-negp): Replace variable regs by declared variable.

(math-apply-rw-ruleset): New variable.
(math-apply-rewrites, math-rwapply-remember): Replace variable ruleset
by declared variable.
2004-11-19 21:03:48 +00:00
Jay Belanger
358c90f4f2 (math-simplify-divisor): Remove unnecessary variables. 2004-11-18 16:30:27 +00:00