sigmond fuction complete