[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #52827] decimal notation constant typos in the
From: |
anonymous |
Subject: |
[Octave-bug-tracker] [bug #52827] decimal notation constant typos in the document |
Date: |
Sun, 7 Jan 2018 05:53:56 -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/?52827>
Summary: decimal notation constant typos in the document
Project: GNU Octave
Submitted by: None
Submitted on: Sun 07 Jan 2018 10:53:55 AM 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:
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.
address@hidden @tab quadgk @tab Medium accuracy (@address@hidden) with
smooth integrands.
address@hidden @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-
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?52827>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #52827] decimal notation constant typos in the document,
anonymous <=