bugGNU Octave - Bugs: bug #52827, decimal notation constant typos in...

 
 

bug #52827: decimal notation constant typos in the document

Submitter:  None
Submitted:  Sun 07 Jan 2018 10:53:55 AM UTC
   
 
Category:  Documentation Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Documentation
Status:  Fixed Assigned to:  None
Originator Name:  Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * 4.2.1
Operating System:  * Any Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Sun 07 Jan 2018 04:32:00 PM UTC, comment #2: 

I fixed that here (http://hg.savannah.gnu.org/hgweb/octave/rev/ba8b828ee4f2).  Closing report.

Rik <rik5>
Group administrator
Sun 07 Jan 2018 10:59:02 AM UTC, comment #1: 

sorry, it seems that the patch cannot be displayed in the original submission...


diff -ur a/doc/interpreter/quad.txi b/doc/interpreter/quad.txi
--- a/doc/interpreter/quad.txi
+++ b/doc/interpreter/quad.txi
@@ -81,7 +81,7 @@
 @item @tab quad   @tab Low accuracy with nonsmooth integrands
 @item @tab quadv  @tab Medium accuracy with smooth integrands
 @item @tab quadl  @tab Medium accuracy with smooth integrands.  Slower than quadgk.
-@item @tab quadgk @tab Medium accuracy (@math{1e^{-6}}--@math{1e^{-9}}) with smooth integrands.
+@item @tab quadgk @tab Medium accuracy (1e-6 -- 1e-9) with smooth integrands.
 @item @tab        @tab Handles oscillatory functions and infinite bounds
 @item @tab quadcc @tab Low to High accuracy with nonsmooth/smooth integrands
 @item @tab        @tab Handles oscillatory functions, singularities, and infinite bounds
diff -ur a/libinterp/corefcn/quad.cc b/libinterp/corefcn/quad.cc
--- a/libinterp/corefcn/quad.cc
+++ b/libinterp/corefcn/quad.cc
@@ -152,7 +152,7 @@
 tolerance.  To choose a relative test only, set the absolute
 tolerance to zero.  To choose an absolute test only, set the relative
 tolerance to zero.  Both tolerances default to @code{sqrt (eps)} or
-approximately @math{1.5e^{-8}}.
+approximately 1.5e-8.

 The optional argument @var{sing} is a vector of values at which the
 integrand is known to be singular.
diff -ur a/libinterp/corefcn/quadcc.cc b/libinterp/corefcn/quadcc.cc
--- a/libinterp/corefcn/quadcc.cc
+++ b/libinterp/corefcn/quadcc.cc
@@ -1513,8 +1513,8 @@
 absolute tolerance, and the second element is the desired relative tolerance.
 To choose a relative test only, set the absolute tolerance to zero.  To choose
 an absolute test only, set the relative tolerance to zero.  The default
-absolute tolerance is @math{1e^{-10}} (@math{1e^{-5}} for single), and the
-default relative tolerance is @math{1e^{-6}} (@math{1e^{-4}} for single).
+absolute tolerance is 1e-10 (1e-5 for single), and the
+default relative tolerance is 1e-6 (1e-4 for single).

 The optional argument @var{sing} contains a list of points where the integrand
 has known singularities, or discontinuities in any of its derivatives, inside
diff -ur a/scripts/general/dblquad.m b/scripts/general/dblquad.m
--- a/scripts/general/dblquad.m
+++ b/scripts/general/dblquad.m
@@ -33,7 +33,7 @@
 ## whether infinite bounds are accepted.
 ##
 ## The optional argument @var{tol} defines the absolute tolerance used to
-## integrate each sub-integral.  The default value is @math{1e^{-6}}.
+## integrate each sub-integral.  The default value is 1e-6.
 ##
 ## The optional argument @var{quadf} specifies which underlying integrator
 ## function to use.  Any choice but @code{quad} is available and the default
diff -ur a/scripts/general/quadl.m b/scripts/general/quadl.m
--- a/scripts/general/quadl.m
+++ b/scripts/general/quadl.m
@@ -34,7 +34,7 @@
 ## limits must be finite.
 ##
 ## The optional argument @var{tol} defines the absolute tolerance with which
-## to perform the integration.  The default value is @math{1e-6}.
+## to perform the integration.  The default value is 1e-6.
 ##
 ## The algorithm used by @code{quadl} involves recursively subdividing the
 ## integration interval.  If @var{trace} is defined then for each subinterval


Anonymous
Sun 07 Jan 2018 10:53:55 AM UTC, original submission:  

For example, 3e-5 should not be 3e^{-5}
In other words, 3e-5 == 3*10^-5 != 3*e^-5 == 3*exp(-5)

Possible patch:

-diff -ur a/doc/interpreter/quad.txi b/doc/interpreter/quad.txi
--- a/doc/interpreter/quad.txi
+++ b/doc/interpreter/quad.txi
@@ -81,7 +81,7 @@
 @item @tab quad   @tab Low accuracy with nonsmooth integrands
 @item @tab quadv  @tab Medium accuracy with smooth integrands
 @item @tab quadl  @tab Medium accuracy with smooth integrands.  Slower than quadgk.
-@item @tab quadgk @tab Medium accuracy (@math{1e^{-6}}--@math{1e^{-9}}) with smooth integrands.
+@item @tab quadgk @tab Medium accuracy (1e-6 -- 1e-9) with smooth integrands.
 @item @tab        @tab Handles oscillatory functions and infinite bounds
 @item @tab quadcc @tab Low to High accuracy with nonsmooth/smooth integrands
 @item @tab        @tab Handles oscillatory functions, singularities, and infinite bounds
diff -ur a/libinterp/corefcn/quad.cc b/libinterp/corefcn/quad.cc
--- a/libinterp/corefcn/quad.cc
+++ b/libinterp/corefcn/quad.cc
@@ -152,7 +152,7 @@
 tolerance.  To choose a relative test only, set the absolute
 tolerance to zero.  To choose an absolute test only, set the relative
 tolerance to zero.  Both tolerances default to @code{sqrt (eps)} or
-approximately @math{1.5e^{-8}}.
+approximately 1.5e-8.

 The optional argument @var{sing} is a vector of values at which the
 integrand is known to be singular.
diff -ur a/libinterp/corefcn/quadcc.cc b/libinterp/corefcn/quadcc.cc
--- a/libinterp/corefcn/quadcc.cc
+++ b/libinterp/corefcn/quadcc.cc
@@ -1513,8 +1513,8 @@
 absolute tolerance, and the second element is the desired relative tolerance.
 To choose a relative test only, set the absolute tolerance to zero.  To choose
 an absolute test only, set the relative tolerance to zero.  The default
-absolute tolerance is @math{1e^{-10}} (@math{1e^{-5}} for single), and the
-default relative tolerance is @math{1e^{-6}} (@math{1e^{-4}} for single).
+absolute tolerance is 1e-10 (1e-5 for single), and the
+default relative tolerance is 1e-6 (1e-4 for single).

 The optional argument @var{sing} contains a list of points where the integrand
 has known singularities, or discontinuities in any of its derivatives, inside
diff -ur a/scripts/general/dblquad.m b/scripts/general/dblquad.m
--- a/scripts/general/dblquad.m
+++ b/scripts/general/dblquad.m
@@ -33,7 +33,7 @@
 ## whether infinite bounds are accepted.
 ##
 ## The optional argument @var{tol} defines the absolute tolerance used to
-## integrate each sub-integral.  The default value is @math{1e^{-6}}.
+## integrate each sub-integral.  The default value is 1e-6.
 ##
 ## The optional argument @var{quadf} specifies which underlying integrator
 ## function to use.  Any choice but @code{quad} is available and the default
diff -ur a/scripts/general/quadl.m b/scripts/general/quadl.m
--- a/scripts/general/quadl.m
+++ b/scripts/general/quadl.m
@@ -34,7 +34,7 @@
 ## limits must be finite.
 ##
 ## The optional argument @var{tol} defines the absolute tolerance with which
-## to perform the integration.  The default value is @math{1e-6}.
+## to perform the integration.  The default value is 1e-6.
 ##
 ## The algorithm used by @code{quadl} involves recursively subdividing the
 ## integration interval.  If @var{trace} is defined then for each subinterval
verbatim-

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by None (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-01-07 rik5 StatusNone Fixed
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code