Determining functions from input-output table