mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-05 09:21:13 +08:00
[pre-commit.ci] pre-commit autoupdate (#11322)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/astral-sh/ruff-pre-commit: v0.2.2 → v0.3.2](https://github.com/astral-sh/ruff-pre-commit/compare/v0.2.2...v0.3.2) - [github.com/pre-commit/mirrors-mypy: v1.8.0 → v1.9.0](https://github.com/pre-commit/mirrors-mypy/compare/v1.8.0...v1.9.0) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
![66853113+pre-commit-ci[bot]@users.noreply.github.com](/assets/img/avatar_default.png)
committed by
GitHub

parent
5f95d6f805
commit
bc8df6de31
@ -8,7 +8,6 @@ Fb = ρ * V * g
|
||||
https://en.wikipedia.org/wiki/Archimedes%27_principle
|
||||
"""
|
||||
|
||||
|
||||
# Acceleration Constant on Earth (unit m/s^2)
|
||||
g = 9.80665 # Also available in scipy.constants.g
|
||||
|
||||
|
@ -24,6 +24,7 @@ R = (Σ(mi * ri) / Σ(mi))
|
||||
|
||||
Reference: https://en.wikipedia.org/wiki/Center_of_mass
|
||||
"""
|
||||
|
||||
from collections import namedtuple
|
||||
|
||||
Particle = namedtuple("Particle", "x y z mass") # noqa: PYI024
|
||||
|
@ -1,6 +1,7 @@
|
||||
"""
|
||||
Checks if a system of forces is in static equilibrium.
|
||||
"""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from numpy import array, cos, cross, float64, radians, sin
|
||||
|
@ -11,7 +11,6 @@ goes to infinity).
|
||||
(See also http://www.shodor.org/refdesk/Resources/Algorithms/EulersMethod/ )
|
||||
"""
|
||||
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import random
|
||||
|
@ -20,7 +20,6 @@ zero; as this value is unhelpful, the average of velocities can be determined us
|
||||
alternative method.
|
||||
"""
|
||||
|
||||
|
||||
UNIVERSAL_GAS_CONSTANT = 8.3144598
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user