aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/ChangeLog34
-rw-r--r--man/ChangeLog5
-rw-r--r--man/calc.texi44
3 files changed, 76 insertions, 7 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 02745e8149a..d446ef93926 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -50,6 +50,40 @@
50 50
51 * progmodes/vera-mode.el: New file. 51 * progmodes/vera-mode.el: New file.
52 52
532007-06-19 Jay Belanger <jay.p.belanger@gmail.com>
54
55 * calc/calc.el (calc-multiplication-has-precendence):
56 New variable.
57 (math-standard-ops,math-standard-ops-p,math-expr-ops):
58 New functions.
59 (math-expr-opers): Define using math-standard-ops rather than
60 math-standard-opers.
61 * calc/calc-aent.el (calc-do-calc-eval): Let math-expr-opers
62 equal the function math-standard-ops rather than the variable
63 math-standard-opers.
64 (calc-algebraic-entry): Let math-expr-opers equal
65 math-standard-ops or math-expr-ops, as appropriate.
66 (math-expr-read-level,math-read-factor): Let math-expr-opers
67 equal math-expr-ops.
68 * calc/calc-embed.el (calc-embedded-finish-edit):
69 Let math-expr-opers equal the function math-standard-ops
70 rather than the variable math-standard-opers.
71 * calc/calc-ext.el (math-read-plain-expr)
72 (math-format-flat-expr-fancy): Let math-expr-opers equal the
73 function math-standard-ops rather than the variable
74 math-standard-opers.
75 * calc/calc-lang.el (calc-set-language,math-read-big-rec):
76 Let math-expr-opers equal the function math-standard-ops rather
77 than the variable math-standard-opers.
78 * calc/calc-prog.el (calc-read-parse-table): Let math-expr-opers
79 equal the function math-standard-ops rather than the variable
80 math-standard-opers.
81 * calc/calc-yank.el (calc-finish-stack-edit): Let math-expr-opers
82 equal the function math-standard-ops rather than the variable
83 math-standard-opers.
84 * calc/calccomp.el (math-compose-expr): Let math-expr-opers equal
85 math-expr-ops.
86
532007-06-19 Ivan Kanis <apple@kanis.eu> 872007-06-19 Ivan Kanis <apple@kanis.eu>
54 88
55 * vc-hg.el: New file. 89 * vc-hg.el: New file.
diff --git a/man/ChangeLog b/man/ChangeLog
index 1283f03c14b..8de0d9807f2 100644
--- a/man/ChangeLog
+++ b/man/ChangeLog
@@ -1,3 +1,8 @@
12007-06-19 Jay Belanger <jay.p.belanger@gmail.com>
2
3 * calc.texi (Basic Arithmetic, Customizing Calc): Mention
4 the variable `calc-multiplication-has-precedence'.
5
12007-06-19 Carsten Dominik <dominik@science.uva.nl> 62007-06-19 Carsten Dominik <dominik@science.uva.nl>
2 7
3 * org.texi (Tag): Section swapped with node Timestamps. 8 * org.texi (Tag): Section swapped with node Timestamps.
diff --git a/man/calc.texi b/man/calc.texi
index ecf85a450bd..01c153a230a 100644
--- a/man/calc.texi
+++ b/man/calc.texi
@@ -15975,9 +15975,28 @@ whereas @w{@samp{[-2 ..@: 3] ^ 2}} is @samp{[0 ..@: 9]}.
15975@mindex @null 15975@mindex @null
15976@end ignore 15976@end ignore
15977@tindex / 15977@tindex /
15978The @kbd{/} (@code{calc-divide}) command divides two numbers. Note that 15978The @kbd{/} (@code{calc-divide}) command divides two numbers.
15979when using algebraic entry, @samp{/} has lower precedence than @samp{*}, 15979
15980so that @samp{a/b*c} is interpreted as @samp{a/(b*c)}. 15980When combining multiplication and division in an algebraic formula, it
15981is good style to use parentheses to distinguish between possible
15982interpretations; the expression @samp{a/b*c} should be written
15983@samp{(a/b)*c} or @samp{a/(b*c)}, as appropriate. Without the
15984parentheses, Calc will interpret @samp{a/b*c} as @samp{a/(b*c)}, since
15985in algebraic entry Calc gives division a lower precedence than
15986multiplication. (This is not standard across all computer languages, and
15987Calc may change the precedence depending on the language mode being used.
15988@xref{Language Modes}.) This default ordering can be changed by setting
15989the customizable variable @code{calc-multiplication-has-precedence} to
15990@code{nil} (@pxref{Customizing Calc}); this will give division a higher
15991precedence than multiplication. Note that Calc's default choice of
15992precedence allows @samp{a b / c d} to be used as a shortcut for
15993@smallexample
15994@group
15995a b
15996---.
15997c d
15998@end group
15999@end smallexample
15981 16000
15982When dividing a scalar @expr{B} by a square matrix @expr{A}, the 16001When dividing a scalar @expr{B} by a square matrix @expr{A}, the
15983computation performed is @expr{B} times the inverse of @expr{A}. This 16002computation performed is @expr{B} times the inverse of @expr{A}. This
@@ -34899,10 +34918,9 @@ See @ref{Graphics}.@*
34899The variable @code{calc-gnuplot-name} should be the name of the 34918The variable @code{calc-gnuplot-name} should be the name of the
34900GNUPLOT program (a string). If you have GNUPLOT installed on your 34919GNUPLOT program (a string). If you have GNUPLOT installed on your
34901system but Calc is unable to find it, you may need to set this 34920system but Calc is unable to find it, you may need to set this
34902variable. (@pxref{Customizing Calc}) 34921variable. You may also need to set some Lisp variables to show Calc how
34903You may also need to set some Lisp variables to show Calc how to run 34922to run GNUPLOT on your system, see @ref{Devices, ,Graphical Devices} .
34904GNUPLOT on your system, see @ref{Devices, ,Graphical Devices} . The default value 34923The default value of @code{calc-gnuplot-name} is @code{"gnuplot"}.
34905of @code{calc-gnuplot-name} is @code{"gnuplot"}.
34906@end defvar 34924@end defvar
34907 34925
34908@defvar calc-gnuplot-plot-command 34926@defvar calc-gnuplot-plot-command
@@ -35158,6 +35176,18 @@ should also be added to @code{calc-embedded-announce-formula-alist}
35158and @code{calc-embedded-open-close-plain-alist}. 35176and @code{calc-embedded-open-close-plain-alist}.
35159@end defvar 35177@end defvar
35160 35178
35179@defvar calc-multiplication-has-precedence
35180The variable @code{calc-multiplication-has-precedence} determines
35181whether multiplication or division has precedence in algebraic formulas
35182in normal language modes. If @code{calc-multiplication-has-precedence}
35183is non-@code{nil}, then multiplication has precedence, and so for
35184example @samp{a/b*c} will be interpreted as @samp{a/(b*c)}. If
35185@code{calc-multiplication-has-precedence} is @code{nil}, then division
35186has precedence, and so for example @samp{a/b*c} will be interpreted as
35187@samp{(a/b)*c}. The default value of
35188@code{calc-multiplication-has-precedence} is @code{t}.
35189@end defvar
35190
35161@node Reporting Bugs, Summary, Customizing Calc, Top 35191@node Reporting Bugs, Summary, Customizing Calc, Top
35162@appendix Reporting Bugs 35192@appendix Reporting Bugs
35163 35193