def _evaluatelinearForces(Pot,x,t=0.):
    """Raw, undecorated function for internal use"""
    if isinstance(Pot,list):
        sum= 0.
        for pot in Pot:
            sum+= pot._force_nodecorator(x,t=t)
        return sum
    elif isinstance(Pot,linearPotential):
        return Pot._force_nodecorator(x,t=t)
    else: #pragma: no cover
        raise PotentialError("Input to 'evaluateForces' is neither a linearPotential-instance or a list of such instances")
def _evaluatelinearForces ( Pot , x , t = 0. ) : if isinstance ( Pot , list ) : sum = 0. for pot in Pot : sum += pot . _force_nodecorator ( x , t = t ) return sum elif isinstance ( Pot , linearPotential ) : return Pot . _force_nodecorator ( x , t = t ) else : raise PotentialError ( "Input to 'evaluateForces' is neither a linearPotential-instance or a list of such instances" )
Raw, undecorated function for internal use