Question: how to convert to rational function in this case?

M6 := 1+(-ln(2)-2*ln(a))*a+(-1+(1/2)*(-ln(2)-2*ln(a))^2)*a^2;
with(gfun):
seriestoratpoly(series(M6, a, 4), ['egf']);

Please Wait...