aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorMiles Bader2007-12-29 02:51:57 +0000
committerMiles Bader2007-12-29 02:51:57 +0000
commite97d3ec0184763b2479224486e70d23f03bd340f (patch)
treefb5e5ad400914090c35e12eaf553358296d5929a /doc
parenta0c92ed92d3d62d4926dafb1d595d87843df4688 (diff)
parentfd41ad9836f4b975f388f2fe84abd8a1de11a820 (diff)
downloademacs-e97d3ec0184763b2479224486e70d23f03bd340f.tar.gz
emacs-e97d3ec0184763b2479224486e70d23f03bd340f.zip
Merge from emacs--devo--0
Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-307
Diffstat (limited to 'doc')
-rw-r--r--doc/misc/ChangeLog5
-rw-r--r--doc/misc/calc.texi108
2 files changed, 99 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..1a0729748b2 100644
--- a/doc/misc/calc.texi
+++ b/doc/misc/calc.texi
@@ -13802,6 +13802,9 @@ shifted letter key.
13802* C FORTRAN Pascal:: 13802* C FORTRAN Pascal::
13803* TeX and LaTeX Language Modes:: 13803* TeX and LaTeX Language Modes::
13804* Eqn Language Mode:: 13804* Eqn Language Mode::
13805* Yacas Language Mode::
13806* Maxima Language Mode::
13807* Giac Language Mode::
13805* Mathematica Language Mode:: 13808* Mathematica Language Mode::
13806* Maple Language Mode:: 13809* Maple Language Mode::
13807* Compositions:: 13810* Compositions::
@@ -13965,13 +13968,13 @@ entered this way or using square brackets. Since FORTRAN uses round
13965parentheses for both function calls and array subscripts, Calc displays 13968parentheses for both function calls and array subscripts, Calc displays
13966both in the same way; @samp{a(i)} is interpreted as a function call 13969both 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)}. 13970upon reading, and subscripts must be entered as @samp{subscr(a, i)}.
13968Also, if the variable @code{a} has been declared to have type 13971If 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 13972@code{vector} or @code{matrix}, however, then @samp{a(i)} will be
13970subscript. (@xref{Declarations}.) Usually it doesn't matter, though; 13973parsed as a subscript. (@xref{Declarations}.) Usually it doesn't
13971if you enter the subscript expression @samp{a(i)} and Calc interprets 13974matter, though; if you enter the subscript expression @samp{a(i)} and
13972it as a function call, you'll never know the difference unless you 13975Calc interprets it as a function call, you'll never know the difference
13973switch to another language mode or replace @code{a} with an actual 13976unless 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 13977actual vector (or unless @code{a} happens to be the name of a built-in
13975function!). 13978function!).
13976 13979
13977Underscores are allowed in variable and function names in all of these 13980Underscores are allowed in variable and function names in all of these
@@ -14404,7 +14407,7 @@ $$ \pmatrix{ {a \over b} & 0 \cr 0 & 2^{(x + 1)} } $$
14404@sp 2 14407@sp 2
14405@end iftex 14408@end iftex
14406 14409
14407@node Eqn Language Mode, Mathematica Language Mode, TeX and LaTeX Language Modes, Language Modes 14410@node Eqn Language Mode, Yacas Language Mode, TeX and LaTeX Language Modes, Language Modes
14408@subsection Eqn Language Mode 14411@subsection Eqn Language Mode
14409 14412
14410@noindent 14413@noindent
@@ -14480,7 +14483,87 @@ The words @code{lcol} and @code{rcol} are recognized as synonyms
14480for @code{ccol} during input, and are generated instead of @code{ccol} 14483for @code{ccol} during input, and are generated instead of @code{ccol}
14481if the matrix justification mode so specifies. 14484if the matrix justification mode so specifies.
14482 14485
14483@node Mathematica Language Mode, Maple Language Mode, Eqn Language Mode, Language Modes 14486@node Yacas Language Mode, Maxima Language Mode, Eqn Language Mode, Language Modes
14487@subsection Yacas Language Mode
14488
14489@noindent
14490@kindex d Y
14491@pindex calc-yacas-language
14492@cindex Yacas language
14493The @kbd{d Y} (@code{calc-yacas-language}) command selects the
14494conventions of Yacas, a free computer algebra system. While the
14495operators and functions in Yacas are similar to those of Calc, the names
14496of built-in functions in Yacas are capitalized. The Calc formula
14497@samp{sin(2 x)}, for example, is entered and displayed @samp{Sin(2 x)}
14498in Yacas mode, and `@samp{arcsin(x^2)} is @samp{ArcSin(x^2)} in Yacas
14499mode. Complex numbers are written are written @samp{3 + 4 I}.
14500The standard special constants are written @code{Pi}, @code{E},
14501@code{I}, @code{GoldenRatio} and @code{Gamma}. @code{Infinity}
14502represents both @code{inf} and @code{uinf}, and @code{Undefined}
14503represents @code{nan}.
14504
14505Certain operators on functions, such as @code{D} for differentiation
14506and @code{Integrate} for integration, take a prefix form in Yacas. For
14507example, the derivative of @w{@samp{e^x sin(x)}} can be computed with
14508@w{@samp{D(x) Exp(x)*Sin(x)}}.
14509
14510Other notable differences between Yacas and standard Calc expressions
14511are that vectors and matrices use curly braces in Yacas, and subscripts
14512use square brackets. If, for example, @samp{A} represents the list
14513@samp{@{a,2,c,4@}}, then @samp{A[3]} would equal @samp{c}.
14514
14515
14516@node Maxima Language Mode, Giac Language Mode, Yacas Language Mode, Language Modes
14517@subsection Maxima Language Mode
14518
14519@noindent
14520@kindex d X
14521@pindex calc-maxima-language
14522@cindex Maxima language
14523The @kbd{d X} (@code{calc-maxima-language}) command selects the
14524conventions of Maxima, another free computer algebra system. The
14525function names in Maxima are similar, but not always identical, to Calc.
14526For example, instead of @samp{arcsin(x)}, Maxima will use
14527@samp{asin(x)}. Complex numbers are written @samp{3 + 4 %i}. The
14528standard special constants are written @code{%pi}, @code{%e},
14529@code{%i}, @code{%phi} and @code{%gamma}. In Maxima, @code{inf} means
14530the same as in Calc, but @code{infinity} represents Calc's @code{uinf}.
14531
14532Underscores as well as percent signs are allowed in function and
14533variable names in Maxima mode. The underscore again is equivalent to
14534the @samp{#} in Normal mode, and the percent sign is equivalent to
14535@samp{o'o}.
14536
14537Maxima uses square brackets for lists and vectors, and matrices are
14538written as calls to the function @code{matrix}, given the row vectors of
14539the matrix as arguments. Square brackets are also used as subscripts.
14540
14541@node Giac Language Mode, Mathematica Language Mode, Maxima Language Mode, Language Modes
14542@subsection Giac Language Mode
14543
14544@noindent
14545@kindex d A
14546@pindex calc-giac-language
14547@cindex Giac language
14548The @kbd{d A} (@code{calc-giac-language}) command selects the
14549conventions of Giac, another free computer algebra system. The function
14550names in Giac are similar to Maxima. Complex numbers are written
14551@samp{3 + 4 i}. The standard special constants in Giac are the same as
14552in Calc, except that @code{infinity} represents both Calc's @code{inf}
14553and @code{uinf}.
14554
14555Underscores are allowed in function and variable names in Giac mode.
14556Brackets are used for subscripts. In Giac, indexing of lists begins at
145570, instead of 1 as in Calc. So if @samp{A} represents the list
14558@samp{[a,2,c,4]}, then @samp{A[2]} would equal @samp{c}. In general,
14559@samp{A[n]} in Giac mode corresponds to @samp{A_(n+1)} in Normal mode.
14560
14561The Giac interval notation @samp{2 .. 3} has no surrounding brackets;
14562Calc reads @samp{2 .. 3} as the closed interval @samp{[2 .. 3]} and
14563writes any kind of interval as @samp{2 .. 3}. This means you cannot see
14564the difference between an open and a closed interval while in Giac mode.
14565
14566@node Mathematica Language Mode, Maple Language Mode, Giac Language Mode, Language Modes
14484@subsection Mathematica Language Mode 14567@subsection Mathematica Language Mode
14485 14568
14486@noindent 14569@noindent
@@ -14525,11 +14608,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, 14608to 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}. 14609and can be read in this form or with all-capitals @code{MATRIX}.
14527 14610
14528The Maple interval notation @samp{2 .. 3} has no surrounding brackets; 14611The Maple interval notation @samp{2 .. 3} is like Giac's interval
14529Calc reads @samp{2 .. 3} as the closed interval @samp{[2 .. 3]}, and 14612notation, 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 14613
14534Maple writes complex numbers as @samp{3 + 4*I}. Its special constants 14614Maple writes complex numbers as @samp{3 + 4*I}. Its special constants
14535are @code{Pi}, @code{E}, @code{I}, and @code{infinity} (all three of 14615are @code{Pi}, @code{E}, @code{I}, and @code{infinity} (all three of