Skip to content

Commit 1d9a852

Browse files
committed
fixed exponent in doc string
1 parent 932a133 commit 1d9a852

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pybamm/meshes/one_dimensional_submeshes.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,22 +112,22 @@ class Exponential1DSubMesh(SubMesh1D):
112112
If side is "left", the gridpoints are given by
113113
114114
.. math::
115-
x_{k} = (b-a) + \\frac{\\exp{\\alpha k / N} - 1}{\\exp{\\alpha} - 1} + a,
115+
x_{k} = (b-a) + \\frac{e^{\\alpha k / N} - 1}{e^{\\alpha} - 1} + a,
116116
117117
for k = 1, ..., N, where N is the number of nodes.
118118
119119
Is side is "right", the gridpoints are given by
120120
121121
.. math::
122-
x_{k} = (b-a) + \\frac{\\exp{-\\alpha k / N} - 1}{\\exp{-\\alpha} - 1} + a,
122+
x_{k} = (b-a) + \\frac{e^{-\\alpha k / N} - 1}{e^{-\\alpha} - 1} + a,
123123
124124
for k = 1, ..., N.
125125
126126
If side is "symmetric", the first half of the interval is meshed using the
127127
gridpoints
128128
129129
.. math::
130-
x_{k} = (b/2-a) + \\frac{\\exp{\\alpha k / N} - 1}{\\exp{\\alpha} - 1} + a,
130+
x_{k} = (b/2-a) + \\frac{e^{\\alpha k / N} - 1}{e^{\\alpha} - 1} + a,
131131
132132
for k = 1, ..., N. The grid spacing is then reflected to contruct the grid
133133
on the full interval [a,b].

0 commit comments

Comments
 (0)