  A remarkable property of modern cosmology is that it allows for a special
case of symmetry, consisting in the possibility of describing the early-time
acceleration (inflation) and the late-time acceleration using the same
theoretical framework. In this paper we consider various cosmological models
corresponding to a generalized form for the equation of state for the fluid in
a flat Friedmann -Robertson-Walker universe, emphasizing cases where the
so-called type IV singular inflation is encountered in the future. This is a
soft (non-crushing) kind of singularity. Parameter values for an inhomogeneous
equation of state leading to singular inflation are obtained. We present models
for which there are two type IV singularities, the first corresponding to the
end of the inflationary era and the second to a late time event. We also study
the correspondence between the theoretical slow-roll parameters leading to type
IV singular inflation and the recent results observed by the Planck satellite.
