Dissipation function: Nonequilibrium physics and dynamical systems