Use series to evaluate the limit
lim x-> 0 (1-cos (x))/(1+x-eˣ)
lim x-> 0 (1-cos (x))/(1+x-eˣ)