MathGroup Archive 2001

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

Search the Archive

Re: FORTRAN style, not OK?

  • To: mathgroup at
  • Subject: [mg26864] Re: FORTRAN style, not OK?
  • From: Jens-Peer Kuska <kuska at>
  • Date: Fri, 26 Jan 2001 01:27:15 -0500 (EST)
  • Organization: Universitaet Leipzig
  • References: <94m96g$> <AWQb6.6118$>
  • Sender: owner-wri-mathgroup at

> In[20]:=
> v = 5
> c = 2
> v = v - c
> Out[20]= 5
> Out[21]= 2
> Out[22]= 3
> Whatever the problem is, it is not Mathematica's own syntax. Why not look
> more closely at what your code does?
> --
> Paul Lutus


the problem is, that v[] is a function call and *not* a
reference to a variable. So

define a recusion and not a reference to a value in a list
like v[[i]].

*And* that v[i] is a function call is a "problem" of
Mathematica's syntax.

The true problem is that Toshiyuki Meshii try
to use function values as arrays because FORTRAN's
syntax make no difference between A(i,j) as an array
reference *or* as an function call.


  • Prev by Date: Re: Factor[1+x^4]
  • Next by Date: Re: Factor[1+x^4]
  • Previous by thread: Re: FORTRAN style, not OK?
  • Next by thread: Re: FORTRAN style, not OK?