Jay Belanger
f095c6c9db
(math-simplify-expr): Declared it.
...
Replaced argument expr in all calls of math-defsimplify by
math-simplify-expr.
(math-simplify-units-prod): Replaced variable expr by declared
variable math-simplify-expr.
2004-11-17 19:23:41 +00:00
Jay Belanger
e10300728d
(calc-poly-div-remainder): Declared it.
2004-11-17 19:23:01 +00:00
Jay Belanger
e528df0df8
(math-defsimplify): Changed the argument in the created function to
...
math-simplify-expr.
2004-11-17 19:22:31 +00:00
Jay Belanger
0c90894530
(calc-poly-div): Made calc-poly-div-remainder a local variable.
...
(math-eval-rules-cache, math-eval-rules-cache-other): Declared them.
(math-top-only): New variable
(math-simplify, math-simplify-step): Replace variable top-only by
declared variable math-top-only.
(math-simplify-expr): Declared it.
Replaced argument expr in all calls of math-defsimplify by
math-simplify-expr.
(math-simplify-plus, math-simplify-times, math-simplify-divide)
(math-simplify-divisor, math-simplify-one-divisor)
(math-simplify-mod, math-simplify-ineq, math-simplify-sqrt)
(math-simplify-pow): Replaced variable expr by declared variable
math-simplify-expr.
(math-simplify-divisor): Removed local variables temp and op.
(math-simplify-one-divisor): Made temp and op local variables.
(math-simplify-divisor-nover, math-simplify-divisor-dover): New
variables.
(math-simplify-divisor, math-simplify-one-divisor): Use declared
variables.
(math-expr-subst-new, math-expr-subst-old): New variables.
(math-expr-subst, math-expr-subst-rec): Use declared variables.
(math-is-poly-degree, math-is-poly-loose): New variables.
(math-is-polynomial, math-is-poly-rec): Use declared variables.
(math-poly-base-const-ok, math-poly-base-pred): New variables.
(math-polynomial-base, math-polynomial-base-rec): Use declared
variables.
2004-11-17 19:21:57 +00:00
Jay Belanger
f7adda5411
(math-integrate-by-parts): Removed unused variable var-thing.
...
(math-integ-depth, math-integ-level, math-integral-limit)
(math-enable-subst, math-any-substs, math-integ-msg)
(math-prev-parts-v, math-good-parts, math-max-integral-limit)
(math-int-threshold, math-int-factors, math-double-roots)
(math-solve-simplifying, var-IntegLimit, math-solve-sign)
(var-GenCount): Declared these variables.
(calcFunc-integ): Don't check if var-IntegLimit is bound.
(math-integral-cache, math-integral-cache-state): Move declarations
to earlier in the file.
(math-deriv-var, math-deriv-total, math-deriv-symb): New variables.
(math-derivative, calcFunc-deriv, calcFunc-tderiv): Replace
variables deriv-var, deriv-total and deriv-symb by declared variables
math-deriv-var, math-deriv-total and math-deriv-symb.
(math-cur-record): New variable.
(math-integral, math-replace-integral-parts, math-integrate-by-parts)
(calc-dump-integral-cache, math-try-integral): Replace variable
cur-record by declared variable math-cur-record.
(math-has-rules): New variable.
(math-try-integral, math-do-integral): Use declared variable
math-has-rules instead of has-rules.
(math-t1, math-t2, math-t3): New variables.
(math-do-integral, math-do-integral-methods, math-try-solve-for)
(math-try-solve-prod, math-solve-poly-funny-powers)
(math-solve-crunch-poly, math-decompose-poly)
(math-solve-find-root-term, math-find-root-in-prod): Replace
variables t1, t2, t3 by declared variables math-t1, math-t2,
math-t3.
(math-so-far, math-integ-expr): New variables.
(math-do-integral-methods, math-integ-try-linear-substitutions)
(math-integ-try-substitutions): Replace variables so-far and expr by
declared variables math-so-far and math-integ-expr.
(math-expr-parts): New variable.
(math-expr-rational-in, math-expr-rational-in-rec): Replace variable
parts by declared variable math-expr-parts.
(calc-low, calc-high): New variables.
(calcFunc-table, math-scan-for-limits): Replaced variable low and
high with the declared variable calc-low and calc-high.
(math-solve-var, math-solve-full): New variables.
(math-try-solve-for, math-try-solve-prod, math-solve-prod)
(math-decompose-poly, math-solve-quartic, math-poly-all-roots)
(math-solve-find-root-in-prod, math-solve-for, math-solve-system)
(math-solve-system-rec, math-solve-get-sign, math-solve-get-int):
Replace variables solve-var and solve-full with declared variables
math-solve-var and math-solve-full.
(math-solve-vars): New variable.
(math-solve-system, math-solve-system-rec): Replace variable
solve-vars with declared variable math-solve-vars.
(math-try-solve-sign): New variable.
(math-try-solve-for, math-try-solve-prod): Replace variable
sign by declared variable math-try-solve-sign.
(math-solve-b): New variable.
(math-solve-poly-funny-powers, math-decompose-poly): Replace variable
b by declared variable math-solve-b.
(math-solve-system-vv, math-solve-res): New variables
(math-solve-system-rec, math-solve-system-subst): Replaced variables
vv and res with declared variables math-solve-system-vv and
math-solve-system-res.
2004-11-15 06:16:21 +00:00
Jay Belanger
68d1b30d25
(calc-dumb-map): Declared it.
...
(calc-graph-show-dumb): Check if calc-dumb-map is non-nil rather than
unbound.
(calc-graph-name): Made `end' a local variable.
(calc-graph-lookup): Made `varname' a local variable.
(var-DUMMY, var-DUMMY2, var-PlotRejects, calc-gnuplot-trail-mark):
Declared them.
(calc-graph-format-data): Don't check if var-PlotRejects is bound.
(calc-graph-plot, calc-graph-compute-3d): Removed references to the
unused variable y3vec.
(calc-graph-show-dumb): Removed reference to unused variable found-pt.
(calc-graph-kill-hook, calc-graph-plot): Removed reference to
calc-graph-prev-kill-hook.
(calc-graph-yvalue, calc-graph-yvec, calc-graph-numsteps,
calc-graph-numsteps3, calc-graph-xvalue, calc-graph-xvec,
calc-graph-xname, calc-graph-yname, calc-graph-xstep,
calc-graph-ycache, calc-graph-ycacheptr, calc-graph-refine,
calc-graph-keep-file, calc-graph-xval, calc-graph-xlow,
calc-graph-xhigh, calc-graph-yval, calc-graph-yp, calc-graph-xp,
calc-graph-zp, calc-graph-yvector, calc-graph-resolution,
calc-graph-y3value, calc-graph-y3name,
calc-graph-y3step, calc-graph-y3step, calc-graph-zval,
calc-graph-stepcount, calc-graph-is-splot, calc-graph-surprise-splot,
calc-graph-blank, calc-graph-non-blank, calc-graph-curve-num): New
variables.
(calc-graph-plot, calc-graph-compute-2d, calc-graph-refine-2d)
(calc-graph-recompute-2d, calc-graph-compute-3d, calc-graph-format-data):
Replaced undeclared variables with the above declared variables.
2004-11-12 22:35:21 +00:00
Jay Belanger
8d7498c1ff
(math-prime-factors-finished): Declared it as a variable.
...
(calcFunc-dfac): Replaced max by n.
(math-stirling-local-cache): New variable.
(math-stirling-number, math-stirling-1, math-stirling-2): Replaced
the variable `cache' by the declared variable math-stirling-local-cache.
(var-RandSeed): Declared it.
(math-init-random-base, math-random-digit): Don't check to see if
var-RandSeed is bound.
(math-random-cache, math-gaussian-cache, calc-verbose-nextprime):
Declared them instead of just setting them.
(math-init-random-base): Made i a local variable.
(math-random-digit): Made math-random-last a local variable.
(math-prime-test-cache): Moved declaration to before it is used.
(math-prime-test-cache-k, math-prime-test-cache-q,
math-prime-test-cache-nm1, math-prime-factors-finished): Declared
them as variables.
2004-11-11 20:59:02 +00:00
Jay Belanger
fe1f8500f8
(math-defcache): Use defvar for the new variables it creates.
2004-11-11 20:16:15 +00:00
Jay Belanger
411b140762
(math-read-brackets, math-check-for-commas): Use declared variable
...
math-exp-pos.
(math-check-for-commas): Use declared variable math-exp-str.
(math-read-brackets): Use declared variables math-exp-old-pos,
math-exp-keep-spaces.
(math-read-brackets, math-read-vector, math-read-matrix): Use
declared variable math-exp-token.
2004-11-11 05:53:19 +00:00
Jay Belanger
679e2630d3
(math-parse-tex-sum): Use declared variable math-exp-old-pos.
...
(math-parse-fortran-vector, math-parse-fortran-vector-end)
(math-parse-eqn-prime): Use declared variable math-exp-token.
2004-11-11 05:52:17 +00:00
Jay Belanger
97660b3e63
(math-read-angle-bracket): Use declared variables math-exp-pos,
...
math-exp-str.
2004-11-11 05:51:24 +00:00
Jay Belanger
e59b8655da
(math-read-expr): Use declared variables math-exp-pos,
...
math-exp-old-pos, math-exp-str, math-exp-token,
math-exp-keep-spaces.
2004-11-11 05:50:09 +00:00
Jay Belanger
3cedbf7217
(calc-do-quick-calc): Use kill-new to append string to kill-ring.
...
(calc-alg-exp, math-toks, math-exp-pos,math-exp-old-pos)
(math-exp-token, math-exp-keep-spaces, math-exp-str): New variables.
(calc-do-alg-entry, calcAlg-equals, calcAlg-edit, calcAlg-enter): Use
declared variable calc-alg-exp.
(math-build-parse-table, math-find-user-token): Use declared variable
math-toks.
(math-read-exprs, math-read-token, calc-check-user-syntax,
calc-match-user-syntax, match-factor-after, math-read-factor): Use
declared variables math-exp-pos math-exp-old-pos.
(math-read-exprs, math-read-token, math-read-expr-level)
(calc-check-user-syntax, calc-match-user-syntax, match-factor-after)
(math-read-factor): Use declared variable math-exp-token.
(math-read-exprs, math-read-expr-list, math-read-token,
math-read-factor): Use declared variable math-exp-keep-spaces.
(math-read-exprs, math-read-token): Use declared variable
math-exp-str.
(calc-match-user-syntax): Made m a local variable.
2004-11-11 05:48:50 +00:00
Jay Belanger
abd880c33e
(math-read-exprs, math-read-expr-list, math-read-expr-level,
...
math-read-token, calc-check-user-syntax, calc-match-user-syntax,
math-read-if, math-factor-after, math-read-factor): Use
declared variable math-expr-data.
2004-11-09 20:32:37 +00:00
Jay Belanger
54961aa0ca
(math-parse-fortran-vector, math-parse-fortran-vector-end,
...
math-parse-tex-sum, math-parse-eqn-matrix, math-parse-eqn-prime,
math-read-math-subscr): Use declared variable math-expr-data.
2004-11-09 20:32:13 +00:00
Jay Belanger
5c8a5f96c7
(math-read-brackets, math-read-vector, math-read-matrix): Use
...
declared variable math-expr-data.
2004-11-09 20:31:40 +00:00
Jay Belanger
ce037856d4
(math-rewrite, math-rewrite-phase): Use declared variable math-mt-many.
...
(math-rewrite): Use declared variable math-mt-func.
2004-11-09 20:31:12 +00:00
Jay Belanger
f7917133cb
(math-expand-form): Use declared variable math-mt-many.
2004-11-09 20:30:40 +00:00
Jay Belanger
dc78141338
(math-normalize-a): New variable.
...
(math-normalize): Use declared variable math-normalize-a.
2004-11-09 20:30:10 +00:00
Jay Belanger
722401eb12
(calc-init-extensions): Remove old code.
...
(math-expr-data, math-mt-many, math-mt-func, calc-z-prefix-buf)
(calc-z-prefix-msgs): New variables.
(calc-z-prefix-help, calc-user-function-list): Use declared variables
calc-z-prefix-buf, calc-z-prefix-msgs.
(math-normalize-nonstandard): Use declared variable math-normalize-a.
(math-map-tree, math-map-tree-rec): Use declared variables
math-mt-many, math-mt-func.
(math-read-expression, math-read-string): Use declared variable math-expr-data.
2004-11-09 20:29:34 +00:00
Jay Belanger
5f16f8be79
(calc-init-extensions): Bound calc-yank to mouse-2.
2004-11-09 04:49:01 +00:00
Jay Belanger
f55320b5c4
(calc-mode-hook, calc-trail-mode-hook, calc-start-hook, calc-end-hook)
...
(calc-load-hook): New variables.
(calc, calc-trail-display, calc-mode): Removed obsolete sections.
(calc-x-paste-text): Removed.
2004-11-09 04:43:03 +00:00
Jay Belanger
f1e0e03c67
(math-do-integral-methods): Try linear, then non-linear, substitutions.
2004-11-08 02:21:11 +00:00
Jay Belanger
4710da05cb
(math-linear-subst-tried): New variable.
...
(math-do-integral): Set `math-linear-subst-tried' to nil.
(math-do-integral-methods): Use `math-linear-subst-tried' to
determine what type of substitution to try.
(math-integ-try-linear-substituion): Set `math-linear-subst-tried' to
t.
2004-11-07 23:33:29 +00:00
Jay Belanger
97d8398874
(calc-over-notation): Replaced `completing-read' with
...
`interactive "s"'.
2004-11-01 20:08:56 +00:00
Jay Belanger
8cb77f98f0
(calc-match): Use an extra argument instead of `interactive-p'.
2004-10-26 19:09:40 +00:00
Jay Belanger
1f5a0f5d5d
(calc-other-window): Use an extra argument instead of `interactive-p'.
2004-10-26 19:06:24 +00:00
Jay Belanger
577e1b7491
(calc,full-calc, calc-quit, calc-keypad, full-calc-keypad)
...
(calc-trail-display): Use an extra argument instead of `interactive-p'.
2004-10-26 19:05:53 +00:00
Jay Belanger
b89c5b7158
(calc-digit-dots): Inhibit read-only before erasing minibuffer.
2004-10-25 13:57:20 +00:00
Jay Belanger
1480882c5f
(calc-alg-ent-map, calc-alg-ent-esc-map): Declared these variables
...
with defvar.
(calc-do-alg-entry): Since `calc-alg-ent-map' is bound, only check to
see if it is non-nil.
2004-10-21 19:20:11 +00:00
Stefan Monnier
22101fbb14
(calc-describe-bindings): Fix last change.
2004-10-21 19:09:46 +00:00
Jay Belanger
6e237e7298
(calc-graph-init): Use `set-process-query-on-exit-flag'
2004-10-21 15:41:15 +00:00
Jay Belanger
aa9208fbc7
(calcAlg-previous): Changed the regexp to the end of buffer regexp.
2004-10-19 15:34:38 +00:00
Jay Belanger
da8937c1f8
(calc-fancy-prefix): Removed emacs version check.
2004-10-19 14:41:50 +00:00
Jay Belanger
33f3d9aebb
(calc-graph-plot): Removed emacs version check.
2004-10-19 14:41:18 +00:00
Jay Belanger
ab079f7202
(calc-total-algebraic-mode): Removed error call that would be given
...
when the current emacs was used.
2004-10-19 14:39:57 +00:00
Jay Belanger
cecd4c2023
(calc-emacs-type-19, calc-emacs-type-epoch, calc-emacs-type-gnu19):
...
Removed.
(calc-digit-map, calc-read-key-sequence, calc-read-key): Removed
check for old emacs versions.
2004-10-19 14:36:47 +00:00
Jay Belanger
f1625eaa20
(calc-do-alg-entry): Remove Emacs version check. Use `copy-keymap' to
...
copy `esc-map'.
2004-10-19 14:22:47 +00:00
Jay Belanger
4ebcaf0ef8
(calc-init-extensions): Define calc-alg-map' and
calc-alg-esc-map'
...
for current Emacs.
2004-10-19 14:21:31 +00:00
Jay Belanger
2061942c16
(calc-describe-bindings): Set `buffer-read-only' to nil while working
...
in the keybindings buffer; remove some extra information from the
keybindings buffer.
2004-10-18 19:13:16 +00:00
Jay Belanger
6fb690e298
(calc-help-function-list, calc-help-variable-list): New variables.
...
(calc-help-index-entries): New function.
(calc-describe-function): Use calc-help-function-list instead of
obarray for completion.
(calc-describe-variable): Use calc-help-variable-list instead of
obarray for completion.
2004-10-12 15:47:32 +00:00
Jay Belanger
749dadb57d
(calc-describe-copying, calc-describe-distribution, calc-describe-thing,
...
calc-describe-no-warranty, calc-describe-key): Go to appropriate info
node in one step.
2004-10-11 03:29:45 +00:00
Jay Belanger
65ce291b9c
(calc-info-goto-node): New function.
...
(calc-tutorial, calc-info-summary): Go to appropriate Calc info node
in one step.
2004-10-11 03:27:24 +00:00
Jay Belanger
9d3c486a7e
Added `calc-info-goto-node' to autoloads.
2004-10-11 03:25:09 +00:00
Jay Belanger
b881982543
(calc-graph-add-curve): Moved the call to `calc-graph-set-styles' so
...
the gnuplot buffer will appear in a separate window.
2004-09-21 18:52:00 +00:00
Jay Belanger
cde090ee08
(calc-mode-var-list): Removed unnecessary quotes.
2004-09-20 18:35:40 +00:00
John Paul Wallington
91af11b2a3
(calc-quick-units): Fix overzealous s/or/unless.
2004-09-18 09:29:35 +00:00
Jay Belanger
def71c184c
(calc-mode-var-list): Fixed the value of `calc-matrix-brackets'.
2004-09-17 17:07:07 +00:00
Jay Belanger
32d5360ac8
(calc-bug-address): Changed email address to send bug reports to.
...
Also changed the maintainer address at the top.
2004-09-15 16:57:57 +00:00
Jay Belanger
a8aee43bd2
(calc-mode): Compare calc-settings-file' to
user-init-file' rather
...
than "\\.emacs" to determine if it is the user-init-file.
2004-09-15 16:54:26 +00:00