Kaz

20 Reputation

2 Badges

16 years, 244 days

MaplePrimes Activity


These are questions asked by Kaz

I need help with a coursework question. Would be greatful if anyone could help!
the question is: solve this x[i-1] + i*x[i] + x[i+1] = i where i=1,2,...n and x[0] = 0. Give your answer in decimals.

wat method would you use to solve these equations? the code I have put in is:

x[0]:=0:
for i from 1 to 3 do:
  eq[i]:=x[i-1] + i*x[i] + x[i+1] = i
od;
eqns:=seq(eq[i],i=1..3):
sol:fsolve({eqns});   assign(sol);

am i on the right path? is there anything i am doing wrong? if so, what is it?

Page 1 of 1