octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #52835] small patches for document Chapter pol


From: anonymous
Subject: [Octave-bug-tracker] [bug #52835] small patches for document Chapter polynomial, interpolation, geometry
Date: Mon, 8 Jan 2018 07:21:10 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0

URL:
  <http://savannah.gnu.org/bugs/?52835>

                 Summary: small patches for document Chapter
polynomial,interpolation,geometry
                 Project: GNU Octave
            Submitted by: None
            Submitted on: Mon 08 Jan 2018 12:21:07 PM UTC
                Category: Documentation
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Documentation
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: address@hidden
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 4.2.1
        Operating System: Any

    _______________________________________________________

Details:


diff -ur a/doc/interpreter/geometry.txi b/doc/interpreter/geometry.txi
--- a/doc/interpreter/geometry.txi
+++ b/doc/interpreter/geometry.txi
@@ -102,7 +102,7 @@
 
 @DOCSTRING(tetramesh)
 
-The difference between @code{triplot}, and @code{trimesh} or @code{triplot},
+The difference between @code{triplot}, and @code{trimesh} or @code{trisurf},
 is that the former only plots the 2-dimensional triangulation itself,
whereas
 the second two plot the value of a function @code{f (@var{x}, @var{y})}.  An
 example of the use of the @code{triplot} function is
@@ -149,7 +149,7 @@
 coordinates defining the point @var{p} are given by
 
 @example
address@hidden = sum (@var{beta}(1:@var{N}+1) * @var{t}(1:@var{N}+1),:)
address@hidden = @var{beta}(1:@var{N}+1) * @var{t}(1:@var{N}+1, :)
 @end example
 
 @noindent
@@ -212,7 +212,7 @@
 @group
 @var{x} = [-1; -1; 1; 1];
 @var{y} = [-1; 1; -1; 1];
address@hidden = [1, 2, 3; 2, 3, 1];
address@hidden = [1, 2, 3; 2, 3, 4];
 @end group
 @end example
 
diff -ur a/scripts/general/interp2.m b/scripts/general/interp2.m
--- a/scripts/general/interp2.m
+++ b/scripts/general/interp2.m
@@ -71,7 +71,7 @@
 ## @end table
 ##
 ## @var{extrap} is a scalar number.  It replaces values beyond the endpoints
-## with @var{extrap}.  Note that if @var{extrapval} is used, @var{method}
must
+## with @var{extrap}.  Note that if @var{extrap} is used, @var{method} must
 ## be specified as well.  If @var{extrap} is omitted and the @var{method} is
 ## @qcode{"spline"}, then the extrapolated values of the @qcode{"spline"}
are
 ## used.  Otherwise the default @var{extrap} value for any other
@var{method}
diff -ur a/scripts/polynomial/mkpp.m b/scripts/polynomial/mkpp.m
--- a/scripts/polynomial/mkpp.m
+++ b/scripts/polynomial/mkpp.m
@@ -38,7 +38,7 @@
 ## order is defined by the length of the last dimension of @var{coefs}.  The
 ## size of first dimension(s) are given by the scalar or vector @var{d}.  If
 ## @var{d} is not given it is set to @code{1}.  In any case @var{coefs} is
-## reshaped to a 2-D matrix of size @address@hidden(@var{d} @var{m})]}.
+## reshaped to a 2-D matrix of size @address@hidden(@var{d}) @var{m}]}.
 ##
 ## @seealso{unmkpp, ppval, spline, pchip, ppder, ppint, ppjumps}
 ## @end deftypefn


Note on Geometry:

First, the original expression has syntax error. Secondly, "P = sum(Beta * T)"
is wrong; either "P = Beta * T" or "P = sum(Beta .* T)" is right. I refer to
the subfunction "tsearchn>cart2bary".

Replace "tri = [1, 2, 3; 2, 3, 1];" with "tri = [1, 2, 3; 2, 3, 4];" according
to the following result "tsearch (x, y, tri, 0.5, 0.5) ⇒ 2". If not so,
"tsearch (x, y, tri, 0.5, 0.5) ⇒ NaN"

Note on interp2:

Only interp2 has the variable name inconsistence; interp1,interp3,interpn are
OK.

Note on mkpp:

Of course the expression "[NI*prod(D M)]" has syntax error, but I'm not
familiar with piecewise polynomial so I'm not very sure how to correct it, so
please check whether the change above is correct.




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?52835>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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