Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #15966

Re: About Table

From Peter Pein <petsie@dordos.net>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: About Table
Date 2011-01-28 11:11 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <ihu89s$1gr$1@smc.vnet.net> (permalink)
References <ihrb1f$8or$1@smc.vnet.net>

Show all headers | View raw


On 27.01.2011 09:40, olfa wrote:
> Hi Mathematica community,
>
> 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)???!!!
>
> Thank you very much.
>

Hi,
  with meaningful input, you'll get

In[1]:= With[{i = 3, n = 5},
  m + Max[Table[A[index1], {index1, i, n}]]
  ]

Out[1]= m + Max[A[3], A[4], A[5]]

and do not use function names as variables.

Peter

Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread


Thread

Re: About Table Peter Pein <petsie@dordos.net> - 2011-01-28 11:11 +0000

csiph-web