What I want to do with Mathematica is this:(adsbygoogle = window.adsbygoogle || []).push({});

1. Given are 4×1 matriceseandu, and 4×4 matrixV. MatriceseandVare constant.

2. Solve the systemu=V.fforf, wherefis 4×1 matrix.

3. Define 4×1 vectorgsuch asg1=f1*Exp(e1*t),g2=f2*Exp(e2*t)etc, whereg1is the first component ofg,f1is the first component off,e1is the first component ofeetc and t=0.1 or 1 or whatever small number.

4. Compute p, where p=V.g

5. Print p and t*(the number of current step in the iteration)

6. Redefine u=p and do it all over again.

Mathematica gives examples where only one expression is to be computed, while I want to compute more expressions in one step. I have no idea how to tell Mathematica to do this. Any idea will be appreciated. You can also give me (if you know one) a link or a title of a book where such kind of problems are explained.

Please help :)

**Physics Forums | Science Articles, Homework Help, Discussion**

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Iteration in Mathematica

**Physics Forums | Science Articles, Homework Help, Discussion**