pub fn tail_energy(&self) -> f64 {
        if self.tail {
            self.potential.tail_energy(self.cutoff)
        } else {
            0.0
        }
    }
/// Get the tail correction to the energy for this pair interaction
///
/// # Examples
///
/// ```
/// use lumol_core::energy::PairInteraction;
/// use lumol_core::energy::LennardJones;
///
/// let potential = Box::new(LennardJones{sigma: 0.5, epsilon: 4.2});
/// let mut interaction = PairInteraction::new(potential, 2.0);
/// interaction.enable_tail_corrections();
///
/// assert_eq!(interaction.tail_energy(), -0.010936609903971353);
/// ```
Get the tail correction to the energy for this pair interaction
Get the tail correction to the energy for this pair interaction
pub fn tail_energy(&self) -> f64 {
        if self.tail {
            self.potential.tail_energy(self.cutoff)
        } else {
            0.0
        }
    }
pub fn tail_energy ( & self ) -> f64 { if self . tail { self . potential . tail_energy ( self . cutoff ) } else { 0.0 } }
Get the tail correction to the energy for this pair interaction
Get the tail correction to the energy for this pair interaction
&self
examples
```
use lumol_core::energy::PairInteraction;
use lumol_core::energy::LennardJones.

let potential = Box::new(LennardJones{sigma: 0.5, epsilon: 4.2});
let mut interaction = PairInteraction::new(potential, 2.0);
interaction.enable_tail_corrections().


` ` ` use lumol_core :: energy :: PairInteraction ; use lumol_core :: energy :: LennardJones . let potential = Box :: new ( LennardJones { sigma : 0 . 5 epsilon : 4 . 2 } ) ; let mut interaction = PairInteraction :: new ( potential 2 . 0 ) ; interaction . enable_tail_corrections () .