diff options
| -rw-r--r-- | doc/misc/ChangeLog | 5 | ||||
| -rw-r--r-- | doc/misc/calc.texi | 49 |
2 files changed, 31 insertions, 23 deletions
diff --git a/doc/misc/ChangeLog b/doc/misc/ChangeLog index 94ec52a8392..90c6da4b158 100644 --- a/doc/misc/ChangeLog +++ b/doc/misc/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2007-10-25 Jay Belanger <jay.p.belanger@gmail.com> | ||
| 2 | |||
| 3 | * calc.texi (Default Simplifications, Making Selections) | ||
| 4 | (Customizing Calc): Clarify associativity of multiplication. | ||
| 5 | |||
| 1 | 2007-10-23 Michael Albinus <michael.albinus@gmx.de> | 6 | 2007-10-23 Michael Albinus <michael.albinus@gmx.de> |
| 2 | 7 | ||
| 3 | * tramp.texi (Traces and Profiles): Simplify loop over | 8 | * tramp.texi (Traces and Profiles): Simplify loop over |
diff --git a/doc/misc/calc.texi b/doc/misc/calc.texi index 24167328d54..ee2dbfb5bc8 100644 --- a/doc/misc/calc.texi +++ b/doc/misc/calc.texi | |||
| @@ -21357,16 +21357,17 @@ entire four-term sum. | |||
| 21357 | @pindex calc-break-selections | 21357 | @pindex calc-break-selections |
| 21358 | The @kbd{j b} (@code{calc-break-selections}) command controls a mode | 21358 | The @kbd{j b} (@code{calc-break-selections}) command controls a mode |
| 21359 | in which the ``deep structure'' of these associative formulas shows | 21359 | in which the ``deep structure'' of these associative formulas shows |
| 21360 | through. Calc actually stores the above formulas as @samp{((a + b) - c) + d} | 21360 | through. Calc actually stores the above formulas as |
| 21361 | and @samp{x * (y * z)}. (Note that for certain obscure reasons, Calc | 21361 | @samp{((a + b) - c) + d} and @samp{x * (y * z)}. (Note that for certain |
| 21362 | treats multiplication as right-associative.) Once you have enabled | 21362 | obscure reasons, by default Calc treats multiplication as |
| 21363 | @kbd{j b} mode, selecting with the cursor on the @samp{-} sign would | 21363 | right-associative.) Once you have enabled @kbd{j b} mode, selecting |
| 21364 | only select the @samp{a + b - c} portion, which makes sense when the | 21364 | with the cursor on the @samp{-} sign would only select the @samp{a + b - |
| 21365 | deep structure of the sum is considered. There is no way to select | 21365 | c} portion, which makes sense when the deep structure of the sum is |
| 21366 | the @samp{b - c + d} portion; although this might initially look | 21366 | considered. There is no way to select the @samp{b - c + d} portion; |
| 21367 | like just as legitimate a sub-formula as @samp{a + b - c}, the deep | 21367 | although this might initially look like just as legitimate a sub-formula |
| 21368 | structure shows that it isn't. The @kbd{d U} command can be used | 21368 | as @samp{a + b - c}, the deep structure shows that it isn't. The @kbd{d |
| 21369 | to view the deep structure of any formula (@pxref{Normal Language Modes}). | 21369 | U} command can be used to view the deep structure of any formula |
| 21370 | (@pxref{Normal Language Modes}). | ||
| 21370 | 21371 | ||
| 21371 | When @kbd{j b} mode has not been enabled, the deep structure is | 21372 | When @kbd{j b} mode has not been enabled, the deep structure is |
| 21372 | generally hidden by the selection commands---what you see is what | 21373 | generally hidden by the selection commands---what you see is what |
| @@ -22158,13 +22159,13 @@ Arithmetic operators like @kbd{+} and @kbd{*} always take two | |||
| 22158 | arguments in Calc's internal form. Sums and products of three or | 22159 | arguments in Calc's internal form. Sums and products of three or |
| 22159 | more terms are arranged by the associative law of algebra into | 22160 | more terms are arranged by the associative law of algebra into |
| 22160 | a left-associative form for sums, @expr{((a + b) + c) + d}, and | 22161 | a left-associative form for sums, @expr{((a + b) + c) + d}, and |
| 22161 | a right-associative form for products, @expr{a * (b * (c * d))}. | 22162 | (by default) a right-associative form for products, |
| 22162 | Formulas like @expr{(a + b) + (c + d)} are rearranged to | 22163 | @expr{a * (b * (c * d))}. Formulas like @expr{(a + b) + (c + d)} are |
| 22163 | left-associative form, though this rarely matters since Calc's | 22164 | rearranged to left-associative form, though this rarely matters since |
| 22164 | algebra commands are designed to hide the inner structure of | 22165 | Calc's algebra commands are designed to hide the inner structure of sums |
| 22165 | sums and products as much as possible. Sums and products in | 22166 | and products as much as possible. Sums and products in their proper |
| 22166 | their proper associative form will be written without parentheses | 22167 | associative form will be written without parentheses in the examples |
| 22167 | in the examples below. | 22168 | below. |
| 22168 | 22169 | ||
| 22169 | Sums and products are @emph{not} rearranged according to the | 22170 | Sums and products are @emph{not} rearranged according to the |
| 22170 | commutative law (@expr{a + b} to @expr{b + a}) except in a few | 22171 | commutative law (@expr{a + b} to @expr{b + a}) except in a few |
| @@ -34868,12 +34869,14 @@ and @code{calc-embedded-open-close-plain-alist}. | |||
| 34868 | 34869 | ||
| 34869 | @defvar calc-multiplication-has-precedence | 34870 | @defvar calc-multiplication-has-precedence |
| 34870 | The variable @code{calc-multiplication-has-precedence} determines | 34871 | The variable @code{calc-multiplication-has-precedence} determines |
| 34871 | whether multiplication has precedence over division in algebraic formulas | 34872 | whether multiplication has precedence over division in algebraic |
| 34872 | in normal language modes. If @code{calc-multiplication-has-precedence} | 34873 | formulas in normal language modes. If |
| 34873 | is non-@code{nil}, then multiplication has precedence, and so for | 34874 | @code{calc-multiplication-has-precedence} is non-@code{nil}, then |
| 34874 | example @samp{a/b*c} will be interpreted as @samp{a/(b*c)}. If | 34875 | multiplication has precedence (and, for certain obscure reasons, is |
| 34875 | @code{calc-multiplication-has-precedence} is @code{nil}, then | 34876 | right associative), and so for example @samp{a/b*c} will be interpreted |
| 34876 | multiplication has the same precedence as division, and so for example | 34877 | as @samp{a/(b*c)}. If @code{calc-multiplication-has-precedence} is |
| 34878 | @code{nil}, then multiplication has the same precedence as division | ||
| 34879 | (and, like division, is left associative), and so for example | ||
| 34877 | @samp{a/b*c} will be interpreted as @samp{(a/b)*c}. The default value | 34880 | @samp{a/b*c} will be interpreted as @samp{(a/b)*c}. The default value |
| 34878 | of @code{calc-multiplication-has-precedence} is @code{t}. | 34881 | of @code{calc-multiplication-has-precedence} is @code{t}. |
| 34879 | @end defvar | 34882 | @end defvar |