# Revision history [back]

### How to force numerical coefficients for non-polynomials?

Hello, Sage Community!

Suppose I have a function like

f(x) = 4/27*t^9*log(t)^2 - 32/243*t^9*log(t) + 59/2187*t^9 - 2/21*t^7*log(t)^2


I would like to force Sage to write the coefficients numerically, i.e.,

f(x) = 0.148148148148148*t^9*log(t)^2 - 0.131687242798354*t^9*log(t) + 0.0269775948788294*t^9 - 0.0952380952380952*t^7*log(t)^2


Thanks in advance! Is there a way to achieve this without having to create my own specialized function?

### How to force numerical coefficients for non-polynomials?

Hello, Sage Community!

Suppose I have a function like

f(x) = 4/27*t^9*log(t)^2 - 32/243*t^9*log(t) + 59/2187*t^9 - 2/21*t^7*log(t)^2


I would like to force Sage to write the coefficients numerically, i.e.,

f(x) = 0.148148148148148*t^9*log(t)^2 - 0.131687242798354*t^9*log(t) + 0.0269775948788294*t^9 - 0.0952380952380952*t^7*log(t)^2


Thanks in advance! Is there a way to achieve this without having to create my own specialized function?