galpy.potential.evaluatelinearPotentials

galpy.potential.evaluatelinearPotentials(Pot, x, t=0.0)[source]

Evaluate the sum of a combination of potentials.

Parameters:
  • Pot (linearPotential or linearCompositePotential) – The potential(s) to evaluate.

  • x (float or Quantity) – The position at which to evaluate the potentials.

  • t (float or Quantity, optional) – The time at which to evaluate the potentials. Default is 0.0.

Returns:

The value of the potential at the given position and time.

Return type:

float or Quantity

Notes

  • 2010-07-13 - Written - Bovy (NYU)

  • 2024-12-01 - Updated to use linearCompositePotential