Newtons Second Law#

pyquations.physics.newtons_second_law.newtons_second_law(mass: float, acceleration: float) float[source]

This function calculates the force exerted on an object using Newton’s second law of motion: F = m * a.

Parameters:
  • mass (float) – The mass of the object in kilograms. Must be non-negative.

  • acceleration (float) – The acceleration of the object in meters per second squared.

Returns:

The force exerted on the object in newtons (N).

Return type:

float

Raises:

ValueError – If ‘mass’ is negative.