Function and equation modeling