Skip to content

Commit

Permalink
Prettify equations v2
Browse files Browse the repository at this point in the history
  • Loading branch information
jokva committed Aug 19, 2019
1 parent cbb7ca7 commit 1d4daa2
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions wellpathpy/mincurve.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,19 +85,28 @@ def minimum_curvature(md, inc, azi, course_length=30):
.. math::
dls = arccos(cos(inc_l - inc_u)
- sin(inc_u) sin(inc_l) (1 - cos(azi_l - azi_u)))
- sin(inc_u) \cdot sin(inc_l) \cdot (1 - cos(azi_l - azi_u)))
.. math::
rf = \\frac{2}{dls \cdot tan(dls \\frac{1}{2})}
rf = \\frac{2}{dls \cdot tan(\\frac{1}{2} dls)}
.. math::
northing = \sum \\frac{(md_l - md_u) (sin(inc_u)cos(azi_u) + sin(inc_l)cos(azi_l)) cf}{2}
northing = \sum \\frac{1}{2}
\cdot (md_l - md_u)
\cdot (sin(inc_u)cos(azi_u) + sin(inc_l)cos(azi_l))
\cdot cf
.. math::
easting = \sum \\frac{(md_l - md_u) (sin(inc_u)sin(azi_u) + sin(inc_l)sin(azi_l)) cf}{2}
easting = \sum \\frac{1}{2}
\cdot (md_l - md_u)
\cdot (sin(inc_u)sin(azi_u) + sin(inc_l)sin(azi_l))
\cdot cf
.. math::
tvd = \sum \\frac{(md_l - md_u) (cos(inc_l) + cos(inc_u)) cf}{2}
tvd = \sum \\frac{1}{2}
\cdot (md_l - md_u)
\cdot (cos(inc_l) + cos(inc_u))
\cdot cf
where:
Expand Down

0 comments on commit 1d4daa2

Please sign in to comment.