I have the following system of equations that I need to solve:
ArrayOfEquations={-(u/10) + 0.4 v[1] - 0.16 v[2] + 0.064 v[3] - 0.0256 v[4] +
0.01024 v[5] - 0.004096 v[6] + 0.0016384 v[7] - 0.00065536 v[8] +
0.000262144 v[9] == g[1],
-0.4 v[1] + 0.32 v[2] - 0.192 v[3] + 0.1024 v[4] -
0.0512 v[5] + 0.024576 v[6] - 0.0114688 v[7] + 0.00524288 v[8] -
0.0023593 v[9] == g[2],
-0.16 v[2] + 0.192 v[3] - 0.1536 v[4] + 0.1024 v[5] -
0.06144 v[6] + 0.0344064 v[7] - 0.0183501 v[8] + 0.00943718 v[9] ==g[3],
-0.064 v[3] + 0.1024 v[4] - 0.1024 v[5] + 0.08192 v[6] -
0.057344 v[7] + 0.0367002 v[8] - 0.0220201 v[9] == g[4],
-0.0256 v[4] + 0.0512 v[5] - 0.06144 v[6] + 0.057344 v[7] -
0.0458752 v[8] + 0.0330301 v[9] == g[5],
-0.01024 v[5] + 0.024576 v[6] - 0.0344064 v[7] +
0.0367002 v[8] - 0.0330301 v[9] == g[6],
-0.004096 v[6] + 0.0114688 v[7] - 0.0183501 v[8] +
0.0220201 v[9] == g[7],
-0.0016384 v[7] + 0.00524288 v[8] - 0.00943718 v[9] == g[8],
-0.00065536 v[8] + 0.0023593 v[9] == g[9],
-0.000262144 v[9] == g[10]}
I want to solve it for variables $u$ and $v[i]$, $i=1,..9$. When I call
Solve[ArrayOfEquations, Join[{u}, Array[v, 9]]]
I get {} as an output.
Why doesn't it work?
I understand that {} in general means no solution. However, I tried it with some numbers substituted for g[i] and got a numerical output. Can't understand what goes wrong if I keep the g[i] symbolically
Thanks for any help!
ToRules@Reduce[ArrayOfEquations, Join[{u}, Array[v, 9]]]– Dr. belisarius May 15 '14 at 13:28,Realsas an option at the end – gpap May 15 '14 at 13:30s = ToRules@Reduce[ArrayOfEquations, Join[{u}, Array[v, 9]]]; v[9] /. Chop@s– Dr. belisarius May 15 '14 at 13:42s = ToRules@ Reduce[Rationalize[#, 0] &@ArrayOfEquations, Join[{u}, Array[v, 9]]];The method used for solving linear systems may introduce that kind of "inaccuracies". In fact if the system is ill-conditioned you may get really wrong results depending on the numerical error. – Dr. belisarius May 15 '14 at 13:55