Use compiled black as the pre-commit formatter (#11247)
* Use compiled black as the pre-commit formatter * ruff-format * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Keep GitHub Actions up to date with Dependabot --------- Co-authored-by: Christian Clauss <cclauss@me.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
@@ -165,9 +165,7 @@ class BodySystem:
|
||||
|
||||
# Calculation of the distance using Pythagoras's theorem
|
||||
# Extra factor due to the softening technique
|
||||
distance = (dif_x**2 + dif_y**2 + self.softening_factor) ** (
|
||||
1 / 2
|
||||
)
|
||||
distance = (dif_x**2 + dif_y**2 + self.softening_factor) ** (1 / 2)
|
||||
|
||||
# Newton's law of universal gravitation.
|
||||
force_x += (
|
||||
|
||||
Reference in New Issue
Block a user