numpy array handling for iterative function, pressure ratio from isentropic deviation and new example