Matrix Functions and Nonlinear Matrix Equations