I have a problem where my python program sometimes crashes, after calculating one of two functions:
def sigma(x): retur