octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: polyint vs polyinteg


From: Søren Hauberg
Subject: Re: polyint vs polyinteg
Date: Sat, 01 Sep 2007 09:54:30 +0200
User-agent: Thunderbird 1.5.0.13 (X11/20070824)

John W. Eaton skrev:
On 31-Aug-2007, David Bateman wrote:

| John W. Eaton wrote:
| > On 31-Aug-2007, Sylvain Pelissier wrote:
| > | > | I have already done a polyint function in Octave forge. You could use it
| > | if it could help and tell me when I could delete it in Octave forge.
| > | > It looks like your polyint function is just a wrapper around
| > polyinteg.  We need it to be the other way around:  polyint should be
| > the real function and polyinteg (which will be deprecated and removed
| > in the future) should call polyint to do the real work (assuming that
| > it is possible to do that while retaining the existing interface for
| > polyinteg, for backward compatibility).
| > | > jwe | > | | Then what about the attached..

OK, please check it in.
Attached patch updates poly.txi to reflect this change. Should there also be a @DOCSTRING(polyinteg) in there?

Søren
Index: doc/interpreter/poly.txi
===================================================================
RCS file: /cvs/octave/doc/interpreter/poly.txi,v
retrieving revision 1.8
diff -u -r1.8 poly.txi
--- doc/interpreter/poly.txi    31 Aug 2007 17:29:22 -0000      1.8
+++ doc/interpreter/poly.txi    1 Sep 2007 07:53:13 -0000
@@ -88,13 +88,13 @@
 @section Derivatives and Integrals
 
 Octave comes with functions for computing the derivative and the integral
-of a polynomial.  The functions @code{polyderiv} and @code{polyinteg}
+of a polynomial.  The functions @code{polyderiv} and @code{polyint}
 both return new polynomials describing the result.  As an example we'll
 compute the definite integral of @math{p(x) = x^2 + 1} from 0 to 3.
 
 @example
 c = [1, 0, 1];
-integral = polyinteg(c);
+integral = polyint(c);
 area = polyval(integral, 3) - polyval(integral, 0)
 @result{} 12
 @end example
@@ -103,7 +103,7 @@
 
 @DOCSTRING(polyder)
 
address@hidden(polyinteg)
address@hidden(polyint)
 
 @node Polynomial Interpolation
 @section Polynomial Interpolation

reply via email to

[Prev in Thread] Current Thread [Next in Thread]