Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2011

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

Search the Archive

Re: About Table

  • To: mathgroup at smc.vnet.net
  • Subject: [mg115992] Re: About Table
  • From: Bill Rowe <readnews at sbcglobal.net>
  • Date: Fri, 28 Jan 2011 06:15:52 -0500 (EST)

On 1/27/11 at 3:40 AM, olfa.mraihi at yahoo.fr (olfa) wrote:

>when evaluating this input (with shift+enter): m +
>Max[Table[A[index1], {index1, i, N}]]

>I obtain the output: m + Table[A[index1], {index1, i, N}]

>How to explain why the function Max wasn't maintained (I mean why it
>was ignored by mathematica)???!!!

It was returned unevaluated since Mathematica has no way to make
a comparison between elements of the generated list until you
define A.

In Mathematica, the syntax A[index1] becomes A[1],A[2] etc.
These are interpreted by Mathematica as the *function* A
evaluate at 1, 2 etc. It is impossible for Mathematica or anyone
for that matter to determine how A[1] compares with A[2] until A
is defined. Note, this is also true when you think of A[1] as
being a subscripted variable.



  • Prev by Date: Re: About Table
  • Next by Date: Re: variable dimension of domain of integration
  • Previous by thread: Re: About Table
  • Next by thread: Re: About Table