galpy.potential.linearPotential.__add__

linearPotential.__add__(b)[source]

Add linearPotential instances together to create a multi-component potential (e.g., pot= pot1+pot2+pot3)

Parameters:

b (linearPotential instance or a linearCompositePotential)

Returns:

Represents the combined potential

Return type:

linearCompositePotential

Notes

  • 2019-01-27 - Written - Bovy (UofT)

  • 2024-12-01 - Updated to return linearCompositePotential