MathGroup Archive 2001

[Date Index] [Thread Index] [Author Index]

Search the Archive

Fw: FORTRAN style, not OK?


Hello,

I found out a case in which I cannot directly use FORTRAN statement in
Mathematica programming.
Here is the case good in FORTRAN.

v=v-c

However in Mathematica, it seems that I have to use a trick like this.

temp=v;
v=temp-c

Is there more smart way for doing the above?
Please let me know.
___________________________________
The final goal for me is to do the following.

Do[
 Do[
      v[i][j][k] = v[i][j][k] - va[j]
      ,{j, 3}]
    ,{k, 100}];

-Toshi




  • Prev by Date: triangles in circles
  • Next by Date: Fw: Compiling a function using Module
  • Previous by thread: Re: triangles in circles
  • Next by thread: Re: Fw: FORTRAN style, not OK?