I'm currently doing some physics and while trying to solve a problem I came across an equation that I can't rearrange for the variable (the question is pure mathematics so I'm asking it here).
The equation is: $$H = \frac{\sum\limits_n^N E_n \exp ( \lambda E_n)}{ \sum\limits_n^N \exp(\lambda E_n) }$$
I need to calculate $\lambda$. $H$ and all $E_n$ are known. Clearly it should be possible to calculate $\lambda$ but I have no idea how to rearrange for $\lambda$. I think it can't be done, but even if I had $H$ and $E_n$ as actual numbers I can't see how to calculate $\lambda$. Can it only be done numerically or am I missing something?
Thanks.
EDIT:
I also know: $\sum\limits_{n=1}^N a_n E_n = H$ with $\sum_{n=1}^N a_n = 1$, $a_n = \frac{\exp (\lambda E_n)}{\sum\limits_{n=1}^N \exp(\lambda E_n)}$ and $N>1$ ( I used those to build the equation)