The code below generates a system of equations that I need to Solve[] for {c[5], c[6], c[7], c[8]} in terms of {c[1], c[2], c[3], c[4]}.
f[x_] := E^-Sum[a[i]*x^i, {i, 0, 4}];
zeroEq = {};
Do[Do[
zeroEq = Append[zeroEq, Expand[D[f[x]*x^n, {x, m}]/f[x]] /. x^r_ -> c[r] /. x -> c[1]],
{n, 0, 8 - 3*m}], {m, 1, 2}];
aElim = Eliminate[zeroEq == 0, {a[1], a[2], a[3], a[4]}];
This much works fine, but then Solve[] just runs indefinitely without returning results or error messages.
Solve[aElim, {c[5], c[6], c[7], c[8]}]
I attempted applying some known inequalities to reduce the work on Solve[], but Reduce[] bogs down in the same way, no error message or result:
Reduce[aElim && c[2] > 0 && c[4] > 0 && c[6] > 0 && c[8] > 0]
So...
1) what is going on here?
2) Can I fix it?
eqn
) to 0; withoutThread[]
, I can imagine how it might cause some trouble. $\endgroup$Solve
is fine withSolve[list==0]
and just quietly thread over one level. (2) I suspectEliminate
is not happy with inequalities though. $\endgroup$