0
votes
0answers
37 views

Using indexed variables to make a vector — Iteration limits exceeded [on hold]

I am trying to do an implicit numerical integration scheme for the 1D heat equation. This basically amounts to diagonalizing a matrix equation at every time-step of the simulation. So in order to do ...
0
votes
0answers
31 views

How to define a vector of arbitary length [duplicate]

I need to use a vector of length which I can change, indexed symbolically So for e.g. when N=3 I'd like to have vec={c1,c2,c3} when N=5 ...
14
votes
6answers
2k views

Why can't I define vector v as having subscripted elements v_1, v_2, v_3…?

I'm a very beginner in Mathematica 8 programming. While trying to play a little with tensor analysis I encountered a problem. How to define for example vector in such manner: v={$v_1,v_2,v_3$} For ...