Question: How do you truncate a power series?

I am using dsolve(..., type = series) to solve differential equations in the form of a power series. I plot these power series with different orders to observe how they converge. I use quite large orders (25 or even 50), and generating these solutions is slow.

I would like to generate power series with order 25, for example, and then truncate it to order 24 directly, instead of having to call dsolve a second time. I was hoping this could be done somehow using convert and op, but I haven't made much progress.

Please Wait...