I am trying to solve for h1
and h2
using function solve as in below code, Expression in solve has two equation each equates sum of two expression. Both left hand and right hand side of second expression is the sum of eight quantities. h1
is used for first $4$ and h2
is used for next $4$ for second expression in both left and right hand side. Fist expression in solve is also very similar to second except that it is sum of four quantities and uses just h1
.
I am getting correct value of h1
if I just solve fist equation. However when I am using two expression I am getting error:
Solve[
Sum[50/10000*1/4*1/4*n*97/100*Exp[-h1*1/4*n], {n, 1, 4}] ==
Sum[1/2*1/4*n*97/100*(Exp[-h1*1/4*(n - 1)] - Exp[-h1*1/4*n]), {n,
1, 4}] &&
Sum[77/10000*1/4*1/4*n*97/100*Exp[-h1*1/4*n], {n, 1, 4}] +
Sum[77/10000*1/4*1/4*n*94/100*Exp[-h2*1/4*n], {n, 5, 8}] ==
Sum[1/2*1/4*n*97/100*(Exp[-h1*1/4*(n - 1)] - Exp[-h1*1/4*n]), {n, 1, 4}]
Sum[1/2*1/4*n*94/100*(Exp[-h2*1/4*(n - 1)] - Exp[-h2*1/4*n]), {n, 5,8}],
{h1, h2}, Reals]
The output of Solve is
{{h1 -> 0.00998752, h2 -> 0.00998752}}
The error message observed is :
"The front end encountered an error while processing a "NotebookPredictions" packet".
Can anybody pl
help in understanding error and help solving h1
and h2
Please?