changeset 24545:ba8b828ee4f2 stable

doc: Replace @math{1e^{XXX}} sequences with raw 1eXXX (bug #52827). Expansion in TeX leads to incorrect interpretation of 1 * e^{XXX} rather than 1 * 10^{XXX}. * quad.txi, quad.cc (Fquad), quadcc.cc (Fquad.cc), dblquad.m, quadl.m: Replace @math{1e^{XXX}} sequences with raw 1eXXX (bug #52827).
author Rik <rik@octave.org>
date Sun, 07 Jan 2018 08:26:41 -0800
parents e891b6dd7e35
children d3a507ca2d5d 6e81c8a5add7
files doc/interpreter/quad.txi libinterp/corefcn/quad.cc libinterp/corefcn/quadcc.cc scripts/general/dblquad.m scripts/general/quadl.m
diffstat 5 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/doc/interpreter/quad.txi	Sun Jan 07 07:47:11 2018 -0800
+++ b/doc/interpreter/quad.txi	Sun Jan 07 08:26:41 2018 -0800
@@ -75,7 +75,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
--- a/libinterp/corefcn/quad.cc	Sun Jan 07 07:47:11 2018 -0800
+++ b/libinterp/corefcn/quad.cc	Sun Jan 07 08:26:41 2018 -0800
@@ -151,7 +151,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.
--- a/libinterp/corefcn/quadcc.cc	Sun Jan 07 07:47:11 2018 -0800
+++ b/libinterp/corefcn/quadcc.cc	Sun Jan 07 08:26:41 2018 -0800
@@ -1503,7 +1503,7 @@
 by substituting the variable of integration with @code{x = tan (pi/2*u)}.
 
 The optional argument @var{tol} defines the relative tolerance used to stop
-the integration procedure.  The default value is @math{1e^{-6}}.
+the integration procedure.  The default value is 1e-6.
 
 The optional argument @var{sing} contains a list of points where the
 integrand has known singularities, or discontinuities
--- a/scripts/general/dblquad.m	Sun Jan 07 07:47:11 2018 -0800
+++ b/scripts/general/dblquad.m	Sun Jan 07 08:26:41 2018 -0800
@@ -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
--- a/scripts/general/quadl.m	Sun Jan 07 07:47:11 2018 -0800
+++ b/scripts/general/quadl.m	Sun Jan 07 08:26:41 2018 -0800
@@ -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