ki function

Stewart's index