/[emacs]/emacs/man/calc.texi
ViewVC logotype

Diff of /emacs/man/calc.texi

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.52 by wl, Fri Mar 25 09:18:26 2005 UTC revision 1.53 by wl, Fri Mar 25 10:17:33 2005 UTC
# Line 13942  Without being switched into C mode first Line 13942  Without being switched into C mode first
13942  the brackets in @samp{a[1]} and @samp{a[2]}, would not have known that  the brackets in @samp{a[1]} and @samp{a[2]}, would not have known that
13943  @code{atan} was equivalent to Calc's built-in @code{arctan} function,  @code{atan} was equivalent to Calc's built-in @code{arctan} function,
13944  and would have written the formula back with notations (like implicit  and would have written the formula back with notations (like implicit
13945  multiplication) which would not have been legal for a C program.  multiplication) which would not have been valid for a C program.
13946    
13947  As another example, suppose you are maintaining a C program and a La@TeX{}  As another example, suppose you are maintaining a C program and a La@TeX{}
13948  document, each of which needs a copy of the same formula.  You can grab the  document, each of which needs a copy of the same formula.  You can grab the
# Line 15472  backslashes in tokens.) Line 15472  backslashes in tokens.)
15472  This will parse @samp{3 bad token 4 /"\ 5} to @samp{silly(3,4,5)}.  This will parse @samp{3 bad token 4 /"\ 5} to @samp{silly(3,4,5)}.
15473    
15474  The token @kbd{#} has a predefined meaning in Calc's formula parser;  The token @kbd{#} has a predefined meaning in Calc's formula parser;
15475  it is not legal to use @samp{"#"} in a syntax rule.  However, longer  it is not valid to use @samp{"#"} in a syntax rule.  However, longer
15476  tokens that include the @samp{#} character are allowed.  Also, while  tokens that include the @samp{#} character are allowed.  Also, while
15477  @samp{"$"} and @samp{"\""} are allowed as tokens, their presence in  @samp{"$"} and @samp{"\""} are allowed as tokens, their presence in
15478  the syntax table will prevent those characters from working in their  the syntax table will prevent those characters from working in their
# Line 23426  is allowed only within @code{IntegRules} Line 23426  is allowed only within @code{IntegRules}
23426  with respect to the same integration variable.''  If Calc is unable  with respect to the same integration variable.''  If Calc is unable
23427  to integrate @code{u}, the integration that invoked @code{IntegRules}  to integrate @code{u}, the integration that invoked @code{IntegRules}
23428  also fails.  Thus integrating @samp{twice(f(x))} fails, returning the  also fails.  Thus integrating @samp{twice(f(x))} fails, returning the
23429  unevaluated integral @samp{integ(twice(f(x)), x)}.  It is still legal  unevaluated integral @samp{integ(twice(f(x)), x)}.  It is still valid
23430  to call @code{integ} with two or more arguments, however; in this case,  to call @code{integ} with two or more arguments, however; in this case,
23431  if @code{u} is not integrable, @code{twice} itself will still be  if @code{u} is not integrable, @code{twice} itself will still be
23432  integrated:  If the above rule is changed to @samp{... := twice(integ(u,x))},  integrated:  If the above rule is changed to @samp{... := twice(integ(u,x))},
# Line 25273  As a special feature, if the limits are Line 25273  As a special feature, if the limits are
25273  described above) but the formula includes vectors subscripted by  described above) but the formula includes vectors subscripted by
25274  expressions that involve the iteration variable, Calc narrows  expressions that involve the iteration variable, Calc narrows
25275  the limits to include only the range of integers which result in  the limits to include only the range of integers which result in
25276  legal subscripts for the vector.  For example, the sum  valid subscripts for the vector.  For example, the sum
25277  @samp{sum(k [a,b,c,d,e,f,g]_(2k),k)} evaluates to @samp{b + 2 d + 3 f}.  @samp{sum(k [a,b,c,d,e,f,g]_(2k),k)} evaluates to @samp{b + 2 d + 3 f}.
25278    
25279  The limits of a sum do not need to be integers.  For example,  The limits of a sum do not need to be integers.  For example,
# Line 28738  command. Line 28738  command.
28738  @kindex g A  @kindex g A
28739  @pindex calc-graph-add-3d  @pindex calc-graph-add-3d
28740  The @kbd{g A} (@code{calc-graph-add-3d}) command adds a 3D curve  The @kbd{g A} (@code{calc-graph-add-3d}) command adds a 3D curve
28741  to the graph.  It is not legal to intermix 2D and 3D curves in a  to the graph.  It is not valid to intermix 2D and 3D curves in a
28742  single graph.  This command takes three arguments, ``x'', ``y'',  single graph.  This command takes three arguments, ``x'', ``y'',
28743  and ``z'', from the stack.  With a positive prefix @expr{n}, it  and ``z'', from the stack.  With a positive prefix @expr{n}, it
28744  takes @expr{n+2} arguments (common ``x'' and ``y'', plus @expr{n}  takes @expr{n+2} arguments (common ``x'' and ``y'', plus @expr{n}
# Line 30503  of mode setting, the second is a name fo Line 30503  of mode setting, the second is a name fo
30503  the third is the value in the form of a Lisp symbol, number,  the third is the value in the form of a Lisp symbol, number,
30504  or list.  Annotations with unrecognizable text in the first or  or list.  Annotations with unrecognizable text in the first or
30505  second parts are ignored.  The third part is not checked to make  second parts are ignored.  The third part is not checked to make
30506  sure the value is of a legal type or range; if you write an  sure the value is of a valid type or range; if you write an
30507  annotation by hand, be sure to give a proper value or results  annotation by hand, be sure to give a proper value or results
30508  will be unpredictable.  Mode-setting annotations are case-sensitive.  will be unpredictable.  Mode-setting annotations are case-sensitive.
30509    
# Line 31792  to pop @var{num} values off the stack, r Line 31792  to pop @var{num} values off the stack, r
31792  @code{calc-normalize}, and hand them to your function according to the  @code{calc-normalize}, and hand them to your function according to the
31793  function's argument list.  Your function may include @code{&optional} and  function's argument list.  Your function may include @code{&optional} and
31794  @code{&rest} parameters, so long as calling the function with @var{num}  @code{&rest} parameters, so long as calling the function with @var{num}
31795  parameters is legal.  parameters is valid.
31796    
31797  Your function must return either a number or a formula in a form  Your function must return either a number or a formula in a form
31798  acceptable to Calc, or a list of such numbers or formulas.  These value(s)  acceptable to Calc, or a list of such numbers or formulas.  These value(s)

Legend:
Removed from v.1.52  
changed lines
  Added in v.1.53

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26