diff options
| author | Jay Belanger | 2007-12-29 00:23:01 +0000 |
|---|---|---|
| committer | Jay Belanger | 2007-12-29 00:23:01 +0000 |
| commit | 702dbfd92c81d78749a3b2479ef434ac7ec0ba1c (patch) | |
| tree | f5091d964378d717782767c6e039dd5abfd3a987 | |
| parent | 6c47d8195e2402731c5cec511019b16d6a7a02bd (diff) | |
| download | emacs-702dbfd92c81d78749a3b2479ef434ac7ec0ba1c.tar.gz emacs-702dbfd92c81d78749a3b2479ef434ac7ec0ba1c.zip | |
(Yacas Language, Maxima Language, Giac Language): New sections.
| -rw-r--r-- | doc/misc/ChangeLog | 5 | ||||
| -rw-r--r-- | doc/misc/calc.texi | 105 |
2 files changed, 96 insertions, 14 deletions
diff --git a/doc/misc/ChangeLog b/doc/misc/ChangeLog index 07d74fc32ed..a007f4da3a8 100644 --- a/doc/misc/ChangeLog +++ b/doc/misc/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2007-12-29 Jay Belanger <jay.p.belanger@gmail.com> | ||
| 2 | |||
| 3 | * calc.tex (Yacas Language, Maxima Language, Giac Language): | ||
| 4 | New sections. | ||
| 5 | |||
| 1 | 2007-12-29 Reiner Steib <Reiner.Steib@gmx.de> | 6 | 2007-12-29 Reiner Steib <Reiner.Steib@gmx.de> |
| 2 | 7 | ||
| 3 | * gnus.texi (Group Parameters): Reorder the text and add a note about | 8 | * gnus.texi (Group Parameters): Reorder the text and add a note about |
diff --git a/doc/misc/calc.texi b/doc/misc/calc.texi index b8a42f3c746..26dc6442ca9 100644 --- a/doc/misc/calc.texi +++ b/doc/misc/calc.texi | |||
| @@ -13965,13 +13965,13 @@ entered this way or using square brackets. Since FORTRAN uses round | |||
| 13965 | parentheses for both function calls and array subscripts, Calc displays | 13965 | parentheses for both function calls and array subscripts, Calc displays |
| 13966 | both in the same way; @samp{a(i)} is interpreted as a function call | 13966 | both in the same way; @samp{a(i)} is interpreted as a function call |
| 13967 | upon reading, and subscripts must be entered as @samp{subscr(a, i)}. | 13967 | upon reading, and subscripts must be entered as @samp{subscr(a, i)}. |
| 13968 | Also, if the variable @code{a} has been declared to have type | 13968 | If the variable @code{a} has been declared to have type |
| 13969 | @code{vector} or @code{matrix} then @samp{a(i)} will be parsed as a | 13969 | @code{vector} or @code{matrix}, however, then @samp{a(i)} will be |
| 13970 | subscript. (@xref{Declarations}.) Usually it doesn't matter, though; | 13970 | parsed as a subscript. (@xref{Declarations}.) Usually it doesn't |
| 13971 | if you enter the subscript expression @samp{a(i)} and Calc interprets | 13971 | matter, though; if you enter the subscript expression @samp{a(i)} and |
| 13972 | it as a function call, you'll never know the difference unless you | 13972 | Calc interprets it as a function call, you'll never know the difference |
| 13973 | switch to another language mode or replace @code{a} with an actual | 13973 | unless you switch to another language mode or replace @code{a} with an |
| 13974 | vector (or unless @code{a} happens to be the name of a built-in | 13974 | actual vector (or unless @code{a} happens to be the name of a built-in |
| 13975 | function!). | 13975 | function!). |
| 13976 | 13976 | ||
| 13977 | Underscores are allowed in variable and function names in all of these | 13977 | Underscores are allowed in variable and function names in all of these |
| @@ -14404,7 +14404,7 @@ $$ \pmatrix{ {a \over b} & 0 \cr 0 & 2^{(x + 1)} } $$ | |||
| 14404 | @sp 2 | 14404 | @sp 2 |
| 14405 | @end iftex | 14405 | @end iftex |
| 14406 | 14406 | ||
| 14407 | @node Eqn Language Mode, Mathematica Language Mode, TeX and LaTeX Language Modes, Language Modes | 14407 | @node Eqn Language Mode, Yacas Language Mode, TeX and LaTeX Language Modes, Language Modes |
| 14408 | @subsection Eqn Language Mode | 14408 | @subsection Eqn Language Mode |
| 14409 | 14409 | ||
| 14410 | @noindent | 14410 | @noindent |
| @@ -14480,7 +14480,87 @@ The words @code{lcol} and @code{rcol} are recognized as synonyms | |||
| 14480 | for @code{ccol} during input, and are generated instead of @code{ccol} | 14480 | for @code{ccol} during input, and are generated instead of @code{ccol} |
| 14481 | if the matrix justification mode so specifies. | 14481 | if the matrix justification mode so specifies. |
| 14482 | 14482 | ||
| 14483 | @node Mathematica Language Mode, Maple Language Mode, Eqn Language Mode, Language Modes | 14483 | @node Yacas Language Mode, Maxima Language Mode, Eqn Language Mode, Language Modes |
| 14484 | @subsection Yacas Language Mode | ||
| 14485 | |||
| 14486 | @noindent | ||
| 14487 | @kindex d Y | ||
| 14488 | @pindex calc-yacas-language | ||
| 14489 | @cindex Yacas language | ||
| 14490 | The @kbd{d Y} (@code{calc-yacas-language}) command selects the | ||
| 14491 | conventions of Yacas, a free computer algebra system. While the | ||
| 14492 | operators and functions in Yacas are similar to those of Calc, the names | ||
| 14493 | of built-in functions in Yacas are capitalized. The Calc formula | ||
| 14494 | @samp{sin(2 x)}, for example, is entered and displayed @samp{Sin(2 x)} | ||
| 14495 | in Yacas mode, and `@samp{arcsin(x^2)} is @samp{ArcSin(x^2)} in Yacas | ||
| 14496 | mode. Complex numbers are written are written @samp{3 + 4 I}. | ||
| 14497 | The standard special constants are written @code{Pi}, @code{E}, | ||
| 14498 | @code{I}, @code{GoldenRatio} and @code{Gamma}. @code{Infinity} | ||
| 14499 | represents both @code{inf} and @code{uinf}, and @code{Undefined} | ||
| 14500 | represents @code{nan}. | ||
| 14501 | |||
| 14502 | Certain operators on functions, such as @code{D} for differentiation | ||
| 14503 | and @code{Integrate} for integration, take a prefix form in Yacas. For | ||
| 14504 | example, the derivative of @w{@samp{e^x sin(x)}} can be computed with | ||
| 14505 | @w{@samp{D(x) Exp(x)*Sin(x)}}. | ||
| 14506 | |||
| 14507 | Other notable differences between Yacas and standard Calc expressions | ||
| 14508 | are that vectors and matrices use curly braces in Yacas, and subscripts | ||
| 14509 | use square brackets. If, for example, @samp{A} represents the list | ||
| 14510 | @samp{@{a,2,c,4@}}, then @samp{A[3]} would equal @samp{c}. | ||
| 14511 | |||
| 14512 | |||
| 14513 | @node Maxima Language Mode, Giac Language Mode, Yacas Language Mode, Language Modes | ||
| 14514 | @subsection Maxima Language Mode | ||
| 14515 | |||
| 14516 | @noindent | ||
| 14517 | @kindex d X | ||
| 14518 | @pindex calc-maxima-language | ||
| 14519 | @cindex Maxima language | ||
| 14520 | The @kbd{d X} (@code{calc-maxima-language}) command selects the | ||
| 14521 | conventions of Maxima, another free computer algebra system. The | ||
| 14522 | function names in Maxima are similar, but not always identical, to Calc. | ||
| 14523 | For example, instead of @samp{arcsin(x)}, Maxima will use | ||
| 14524 | @samp{asin(x)}. Complex numbers are written @samp{3 + 4 %i}. The | ||
| 14525 | standard special constants are written @code{%pi}, @code{%e}, | ||
| 14526 | @code{%i}, @code{%phi} and @code{%gamma}. In Maxima, @code{inf} means | ||
| 14527 | the same as in Calc, but @code{infinity} represents Calc's @code{uinf}. | ||
| 14528 | |||
| 14529 | Underscores as well as percent signs are allowed in function and | ||
| 14530 | variable names in Maxima mode. The underscore again is equivalent to | ||
| 14531 | the @samp{#} in Normal mode, and the percent sign is equivalent to | ||
| 14532 | @samp{o'o}. | ||
| 14533 | |||
| 14534 | Maxima uses square brackets for lists and vectors, and matrices are | ||
| 14535 | written as calls to the function @code{matrix}, given the row vectors of | ||
| 14536 | the matrix as arguments. Square brackets are also used as subscripts. | ||
| 14537 | |||
| 14538 | @node Giac Language Mode, Mathematica Language Mode, Maxima Language Mode, Language Modes | ||
| 14539 | @subsection Giac Language Mode | ||
| 14540 | |||
| 14541 | @noindent | ||
| 14542 | @kindex d A | ||
| 14543 | @pindex calc-giac-language | ||
| 14544 | @cindex Giac language | ||
| 14545 | The @kbd{d A} (@code{calc-giac-language}) command selects the | ||
| 14546 | conventions of Giac, another free computer algebra system. The function | ||
| 14547 | names in Giac are similar to Maxima. Complex numbers are written | ||
| 14548 | @samp{3 + 4 i}. The standard special constants in Giac are the same as | ||
| 14549 | in Calc, except that @code{infinity} represents both Calc's @code{inf} | ||
| 14550 | and @code{uinf}. | ||
| 14551 | |||
| 14552 | Underscores are allowed in function and variable names in Giac mode. | ||
| 14553 | Brackets are used for subscripts. In Giac, indexing of lists begins at | ||
| 14554 | 0, instead of 1 as in Calc. So if @samp{A} represents the list | ||
| 14555 | @samp{[a,2,c,4]}, then @samp{A[2]} would equal @samp{c}. In general, | ||
| 14556 | @samp{A[n]} in Giac mode corresponds to @samp{A_(n+1)} in Normal mode. | ||
| 14557 | |||
| 14558 | The Giac interval notation @samp{2 .. 3} has no surrounding brackets; | ||
| 14559 | Calc reads @samp{2 .. 3} as the closed interval @samp{[2 .. 3]} and | ||
| 14560 | writes any kind of interval as @samp{2 .. 3}. This means you cannot see | ||
| 14561 | the difference between an open and a closed interval while in Giac mode. | ||
| 14562 | |||
| 14563 | @node Mathematica Language Mode, Maple Language Mode, Giac Language Mode, Language Modes | ||
| 14484 | @subsection Mathematica Language Mode | 14564 | @subsection Mathematica Language Mode |
| 14485 | 14565 | ||
| 14486 | @noindent | 14566 | @noindent |
| @@ -14525,11 +14605,8 @@ pass through Calc. As a special case, matrices are written as calls | |||
| 14525 | to the function @code{matrix}, given a list of lists as the argument, | 14605 | to the function @code{matrix}, given a list of lists as the argument, |
| 14526 | and can be read in this form or with all-capitals @code{MATRIX}. | 14606 | and can be read in this form or with all-capitals @code{MATRIX}. |
| 14527 | 14607 | ||
| 14528 | The Maple interval notation @samp{2 .. 3} has no surrounding brackets; | 14608 | The Maple interval notation @samp{2 .. 3} is like Giac's interval |
| 14529 | Calc reads @samp{2 .. 3} as the closed interval @samp{[2 .. 3]}, and | 14609 | notation, and is handled the same by Calc. |
| 14530 | writes any kind of interval as @samp{2 .. 3}. This means you cannot | ||
| 14531 | see the difference between an open and a closed interval while in | ||
| 14532 | Maple display mode. | ||
| 14533 | 14610 | ||
| 14534 | Maple writes complex numbers as @samp{3 + 4*I}. Its special constants | 14611 | Maple writes complex numbers as @samp{3 + 4*I}. Its special constants |
| 14535 | are @code{Pi}, @code{E}, @code{I}, and @code{infinity} (all three of | 14612 | are @code{Pi}, @code{E}, @code{I}, and @code{infinity} (all three of |