Finite Difference Method for Solving Differential Equations