Skip to content

Commit

Permalink
Fix CD
Browse files Browse the repository at this point in the history
  • Loading branch information
helenocampos committed Aug 15, 2024
1 parent 1915718 commit 453a9ad
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions astronomia_utils/astronomia_utils.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
def forca_gravitacional(massa1, massa2, distancia):

"""
"""
Calcula a força gravitacional entre dois corpos.
:param massa1: Massa do primeiro corpo (em kg).
:type massa1: float
:param massa2: Massa do segundo corpo (em kg).
Expand All @@ -13,9 +13,9 @@ def forca_gravitacional(massa1, massa2, distancia):
:rtype: float
Notes
-----
.. math::
F = \\frac{G * (massa1 * massa2)}{distancia^2}
-----
.. math::
F = \\frac{G * (massa1 * massa2)}{distancia^2}
Examples
--------
Expand All @@ -25,6 +25,7 @@ def forca_gravitacional(massa1, massa2, distancia):
"""

G = 6.67430e-11 # Constante gravitacional universal (em m^3/kg/s^2)
forca = (G * massa1 * massa2) / distancia**2
return forca
Expand Down

0 comments on commit 453a9ad

Please sign in to comment.