Homotopy Analysis Method for an Epidemic Model