physics.in_static_equilibrium

Checks if a system of forces is in static equilibrium.

Attributes

forces

Functions

in_static_equilibrium() → bool)

Check if a system is in equilibrium.

polar_force(→ list[float])

Resolves force along rectangular components.

Module Contents

physics.in_static_equilibrium.in_static_equilibrium(forces: numpy.typing.NDArray[numpy.float64], location: numpy.typing.NDArray[numpy.float64], eps: float = 10**-1) bool

Check if a system is in equilibrium. It takes two numpy.array objects. forces ==> [

[force1_x, force1_y], [force2_x, force2_y], ….]

location ==> [

[x1, y1], [x2, y2], ….]

>>> force = array([[1, 1], [-1, 2]])
>>> location = array([[1, 0], [10, 0]])
>>> in_static_equilibrium(force, location)
False
physics.in_static_equilibrium.polar_force(magnitude: float, angle: float, radian_mode: bool = False) list[float]

Resolves force along rectangular components. (force, angle) => (force_x, force_y) >>> import math >>> force = polar_force(10, 45) >>> math.isclose(force[0], 7.071067811865477) True >>> math.isclose(force[1], 7.0710678118654755) True >>> force = polar_force(10, 3.14, radian_mode=True) >>> math.isclose(force[0], -9.999987317275396) True >>> math.isclose(force[1], 0.01592652916486828) True

physics.in_static_equilibrium.forces