calculations in Characteristic_Functions