Skip to content

Commit

Permalink
Fix rendering of latex equations
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisleaman committed Jan 29, 2020
1 parent df82a38 commit 42474ba
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions py_wave_runup/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -611,11 +611,14 @@ class Passarella2018(RunupModel):
def sig(self):
"""
Returns:
Infragravity component of swash using Eqn (14)::
Infragravity component of swash using Eqn (14):
.. math::
S_{ig} = \\frac{\\beta}{0.028+\\beta} +
\\frac{-1}{2412.255 \\beta - 5.521 \\beta L_{p}} +
\\frac{H_{s} -0.711}{0.465 + 173.470 (\\frac{H_{s}}{L_{p}})}
.. math: S_{ig} = \frac{\beta}{0.028+\beta} +
\\frac{-1 }{2412.255 \beta - 5.521 \beta L_{p}} +
\\frac{H_{p} - 0.711}{0.465 + 173.470 (\frac{H_{p}}{L_{p}})}
"""
result = (
(self.beta / (0.028 + self.beta))
Expand All @@ -631,8 +634,11 @@ def swash(self):
Returns:
Total amount of swash using Eqn (12):
.. math:: S = 146.737\beta^2 + \frac{T_{p}H_{p}^3}{5.800+10.595H_{p}^3} -
4397.838\beta^4
.. math::
S = 146.737\\beta^{2} + \\frac{T_{p}H_{s}^{3}}{5.800+10.595H_{
s}^{3}} - 4397.838\\beta^4
"""
result = (
(146.737 * (self.beta ** 2))
Expand Down

0 comments on commit 42474ba

Please sign in to comment.