The study of fast-slow oscillations in systems with irrational nonlinearity that may yield abundant dynamical mechanisms is not well developed. This paper aims to investigate the fast-slow dynamics in an excited mass-spring oscillator with a pair of irrational nonlinearities, which can undergo the dynamical transition from smooth to discontinuous characteristics depending on the values of a smoothness parameter. Three different types of fast-slow oscillations are reported in this interesting smooth and discontinuous (SD) oscillator with a pair of irrational nonlinearities. Due to the smooth and discontinuous characteristics of this SD oscillator, we consider its dynamical behaviors under the smooth and discontinuous cases, respectively. Based on the fast-slow analysis and the two-parameter bifurcation analysis, the smooth fast-slow dynamics associated with fold hysteresis and its turnover are revealed. In the discontinuous case, the system can be viewed as a piecewise-smooth dynamical system governed by three different subsystems in different regions divided by two nonsmooth boundaries. In particular, the nonsmooth boundaries can be divided into parts with different dynamical behaviors, including escaping and crossing lines. Unlike the smooth case, there is no change in the stability of the equilibrium in these three subsystems. However, transitions of system trajectory induced by crossing lines can account for the generation of fast-slow oscillations in the piecewise-smooth system. As a result, the smooth and piecewise-smooth fast-slow dynamics in the excited SD oscillator with a pair of irrational nonlinearities are revealed, which deepens the understanding of fast-slow dynamics of the dynamical systems with irrational nonlinearity.