Algorithms for solving different ODE and PDE