diff options
| -rw-r--r-- | lisp/ChangeLog | 34 | ||||
| -rw-r--r-- | man/ChangeLog | 5 | ||||
| -rw-r--r-- | man/calc.texi | 44 |
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 | ||
| 53 | 2007-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 | |||
| 53 | 2007-06-19 Ivan Kanis <apple@kanis.eu> | 87 | 2007-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 @@ | |||
| 1 | 2007-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 | |||
| 1 | 2007-06-19 Carsten Dominik <dominik@science.uva.nl> | 6 | 2007-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 / |
| 15978 | The @kbd{/} (@code{calc-divide}) command divides two numbers. Note that | 15978 | The @kbd{/} (@code{calc-divide}) command divides two numbers. |
| 15979 | when using algebraic entry, @samp{/} has lower precedence than @samp{*}, | 15979 | |
| 15980 | so that @samp{a/b*c} is interpreted as @samp{a/(b*c)}. | 15980 | When combining multiplication and division in an algebraic formula, it |
| 15981 | is good style to use parentheses to distinguish between possible | ||
| 15982 | interpretations; the expression @samp{a/b*c} should be written | ||
| 15983 | @samp{(a/b)*c} or @samp{a/(b*c)}, as appropriate. Without the | ||
| 15984 | parentheses, Calc will interpret @samp{a/b*c} as @samp{a/(b*c)}, since | ||
| 15985 | in algebraic entry Calc gives division a lower precedence than | ||
| 15986 | multiplication. (This is not standard across all computer languages, and | ||
| 15987 | Calc may change the precedence depending on the language mode being used. | ||
| 15988 | @xref{Language Modes}.) This default ordering can be changed by setting | ||
| 15989 | the customizable variable @code{calc-multiplication-has-precedence} to | ||
| 15990 | @code{nil} (@pxref{Customizing Calc}); this will give division a higher | ||
| 15991 | precedence than multiplication. Note that Calc's default choice of | ||
| 15992 | precedence allows @samp{a b / c d} to be used as a shortcut for | ||
| 15993 | @smallexample | ||
| 15994 | @group | ||
| 15995 | a b | ||
| 15996 | ---. | ||
| 15997 | c d | ||
| 15998 | @end group | ||
| 15999 | @end smallexample | ||
| 15981 | 16000 | ||
| 15982 | When dividing a scalar @expr{B} by a square matrix @expr{A}, the | 16001 | When dividing a scalar @expr{B} by a square matrix @expr{A}, the |
| 15983 | computation performed is @expr{B} times the inverse of @expr{A}. This | 16002 | computation performed is @expr{B} times the inverse of @expr{A}. This |
| @@ -34899,10 +34918,9 @@ See @ref{Graphics}.@* | |||
| 34899 | The variable @code{calc-gnuplot-name} should be the name of the | 34918 | The variable @code{calc-gnuplot-name} should be the name of the |
| 34900 | GNUPLOT program (a string). If you have GNUPLOT installed on your | 34919 | GNUPLOT program (a string). If you have GNUPLOT installed on your |
| 34901 | system but Calc is unable to find it, you may need to set this | 34920 | system but Calc is unable to find it, you may need to set this |
| 34902 | variable. (@pxref{Customizing Calc}) | 34921 | variable. You may also need to set some Lisp variables to show Calc how |
| 34903 | You may also need to set some Lisp variables to show Calc how to run | 34922 | to run GNUPLOT on your system, see @ref{Devices, ,Graphical Devices} . |
| 34904 | GNUPLOT on your system, see @ref{Devices, ,Graphical Devices} . The default value | 34923 | The default value of @code{calc-gnuplot-name} is @code{"gnuplot"}. |
| 34905 | of @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} | |||
| 35158 | and @code{calc-embedded-open-close-plain-alist}. | 35176 | and @code{calc-embedded-open-close-plain-alist}. |
| 35159 | @end defvar | 35177 | @end defvar |
| 35160 | 35178 | ||
| 35179 | @defvar calc-multiplication-has-precedence | ||
| 35180 | The variable @code{calc-multiplication-has-precedence} determines | ||
| 35181 | whether multiplication or division has precedence in algebraic formulas | ||
| 35182 | in normal language modes. If @code{calc-multiplication-has-precedence} | ||
| 35183 | is non-@code{nil}, then multiplication has precedence, and so for | ||
| 35184 | example @samp{a/b*c} will be interpreted as @samp{a/(b*c)}. If | ||
| 35185 | @code{calc-multiplication-has-precedence} is @code{nil}, then division | ||
| 35186 | has 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 | ||