The equation $$ P = \frac{Cn}{y}\left(1-\frac{1}{(1+\frac{y}{n})^{nT}}\right)+\frac{M}{(1+\frac{y}{n})^{nT}} $$
represents the present value (price $P$) of a government bond which pays $C$ dollars $n$ times a year plus a $M$ value at the end of the $T$ years.
I'm trying to get the yield $y$ by solving this equation for $y$.
Wolfram Alpha cannot help me (time exceeded), nor any algebraic online solver I could find.
Is it even possible to solve this equation for $y$?
I can use excel solver to find y numerically, but I would like to get an equation for it.
Update:
Found online an approximate formula:
$$ y \approx \frac{C+\frac{M-P}{nT}}{\frac{M+P}{n}} $$
Update 2:
The Bond Price Formula (as it is called) is derived from this:
$$ P = \sum_{m=1}^{nT}\frac{C}{(1+\frac{y}{n})^m}+\frac{M}{(1+\frac{y}{n})^{nT}} $$