I would like to evaluate/simplify a series of expressions. The first set of expressions works fine, but when I try to evaluate the second line of my code (a very simple expression), the program keeps on "running" until I either have to abort or I get the following message:
I have seen a post with a similar question where the issue seemed to be a memory problem. In my case, the calculations are really simple (until recently, I have been doing many more complicated ones without any problem) so I don't think it can be a memory problem.
Here is my example:
f[x_, k_, b_, γ_] = (b/x)*(x^((k - 1)/k) + γ)^(k/(k - 1))
Derf[x_, k_, b_, γ_] = FullSimplify[D[f[x, k, b, γ], x]]
Der2f[x_, k_, b_, γ_] = FullSimplify[D[Derf[x, k, b, γ], x]]
epsf[x_, k_, b_, γ_] = FullSimplify[-f[x, k, b, γ]/(x*Derf[x, k, b, γ])]
rhof[x_, k_, b_, γ_] = FullSimplify[-x*Der2f[x, k, b, γ]/Derf[x, k, b, γ]]
The above expression get evaluated fine, but the next one does not:
r[x_, k_, b_, γ_] = x*f[x, k, b, γ]
The output I get is:
x f[x, k, b, γ]