aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJay Belanger2007-12-29 00:23:01 +0000
committerJay Belanger2007-12-29 00:23:01 +0000
commit702dbfd92c81d78749a3b2479ef434ac7ec0ba1c (patch)
treef5091d964378d717782767c6e039dd5abfd3a987
parent6c47d8195e2402731c5cec511019b16d6a7a02bd (diff)
downloademacs-702dbfd92c81d78749a3b2479ef434ac7ec0ba1c.tar.gz
emacs-702dbfd92c81d78749a3b2479ef434ac7ec0ba1c.zip
(Yacas Language, Maxima Language, Giac Language): New sections.
-rw-r--r--doc/misc/ChangeLog5
-rw-r--r--doc/misc/calc.texi105
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 @@
12007-12-29 Jay Belanger <jay.p.belanger@gmail.com>
2
3 * calc.tex (Yacas Language, Maxima Language, Giac Language):
4 New sections.
5
12007-12-29 Reiner Steib <Reiner.Steib@gmx.de> 62007-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
13965parentheses for both function calls and array subscripts, Calc displays 13965parentheses for both function calls and array subscripts, Calc displays
13966both in the same way; @samp{a(i)} is interpreted as a function call 13966both in the same way; @samp{a(i)} is interpreted as a function call
13967upon reading, and subscripts must be entered as @samp{subscr(a, i)}. 13967upon reading, and subscripts must be entered as @samp{subscr(a, i)}.
13968Also, if the variable @code{a} has been declared to have type 13968If 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
13970subscript. (@xref{Declarations}.) Usually it doesn't matter, though; 13970parsed as a subscript. (@xref{Declarations}.) Usually it doesn't
13971if you enter the subscript expression @samp{a(i)} and Calc interprets 13971matter, though; if you enter the subscript expression @samp{a(i)} and
13972it as a function call, you'll never know the difference unless you 13972Calc interprets it as a function call, you'll never know the difference
13973switch to another language mode or replace @code{a} with an actual 13973unless you switch to another language mode or replace @code{a} with an
13974vector (or unless @code{a} happens to be the name of a built-in 13974actual vector (or unless @code{a} happens to be the name of a built-in
13975function!). 13975function!).
13976 13976
13977Underscores are allowed in variable and function names in all of these 13977Underscores 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
14480for @code{ccol} during input, and are generated instead of @code{ccol} 14480for @code{ccol} during input, and are generated instead of @code{ccol}
14481if the matrix justification mode so specifies. 14481if 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
14490The @kbd{d Y} (@code{calc-yacas-language}) command selects the
14491conventions of Yacas, a free computer algebra system. While the
14492operators and functions in Yacas are similar to those of Calc, the names
14493of 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)}
14495in Yacas mode, and `@samp{arcsin(x^2)} is @samp{ArcSin(x^2)} in Yacas
14496mode. Complex numbers are written are written @samp{3 + 4 I}.
14497The standard special constants are written @code{Pi}, @code{E},
14498@code{I}, @code{GoldenRatio} and @code{Gamma}. @code{Infinity}
14499represents both @code{inf} and @code{uinf}, and @code{Undefined}
14500represents @code{nan}.
14501
14502Certain operators on functions, such as @code{D} for differentiation
14503and @code{Integrate} for integration, take a prefix form in Yacas. For
14504example, the derivative of @w{@samp{e^x sin(x)}} can be computed with
14505@w{@samp{D(x) Exp(x)*Sin(x)}}.
14506
14507Other notable differences between Yacas and standard Calc expressions
14508are that vectors and matrices use curly braces in Yacas, and subscripts
14509use 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
14520The @kbd{d X} (@code{calc-maxima-language}) command selects the
14521conventions of Maxima, another free computer algebra system. The
14522function names in Maxima are similar, but not always identical, to Calc.
14523For example, instead of @samp{arcsin(x)}, Maxima will use
14524@samp{asin(x)}. Complex numbers are written @samp{3 + 4 %i}. The
14525standard special constants are written @code{%pi}, @code{%e},
14526@code{%i}, @code{%phi} and @code{%gamma}. In Maxima, @code{inf} means
14527the same as in Calc, but @code{infinity} represents Calc's @code{uinf}.
14528
14529Underscores as well as percent signs are allowed in function and
14530variable names in Maxima mode. The underscore again is equivalent to
14531the @samp{#} in Normal mode, and the percent sign is equivalent to
14532@samp{o'o}.
14533
14534Maxima uses square brackets for lists and vectors, and matrices are
14535written as calls to the function @code{matrix}, given the row vectors of
14536the 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
14545The @kbd{d A} (@code{calc-giac-language}) command selects the
14546conventions of Giac, another free computer algebra system. The function
14547names 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
14549in Calc, except that @code{infinity} represents both Calc's @code{inf}
14550and @code{uinf}.
14551
14552Underscores are allowed in function and variable names in Giac mode.
14553Brackets are used for subscripts. In Giac, indexing of lists begins at
145540, 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
14558The Giac interval notation @samp{2 .. 3} has no surrounding brackets;
14559Calc reads @samp{2 .. 3} as the closed interval @samp{[2 .. 3]} and
14560writes any kind of interval as @samp{2 .. 3}. This means you cannot see
14561the 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
14525to the function @code{matrix}, given a list of lists as the argument, 14605to the function @code{matrix}, given a list of lists as the argument,
14526and can be read in this form or with all-capitals @code{MATRIX}. 14606and can be read in this form or with all-capitals @code{MATRIX}.
14527 14607
14528The Maple interval notation @samp{2 .. 3} has no surrounding brackets; 14608The Maple interval notation @samp{2 .. 3} is like Giac's interval
14529Calc reads @samp{2 .. 3} as the closed interval @samp{[2 .. 3]}, and 14609notation, and is handled the same by Calc.
14530writes any kind of interval as @samp{2 .. 3}. This means you cannot
14531see the difference between an open and a closed interval while in
14532Maple display mode.
14533 14610
14534Maple writes complex numbers as @samp{3 + 4*I}. Its special constants 14611Maple writes complex numbers as @samp{3 + 4*I}. Its special constants
14535are @code{Pi}, @code{E}, @code{I}, and @code{infinity} (all three of 14612are @code{Pi}, @code{E}, @code{I}, and @code{infinity} (all three of