MathGroup Archive 2009

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

Search the Archive

Re: Trivial question

  • To: mathgroup at smc.vnet.net
  • Subject: [mg95437] Re: Trivial question
  • From: Bob Hanlon <hanlonr at cox.net>
  • Date: Sun, 18 Jan 2009 05:33:56 -0500 (EST)
  • Reply-to: hanlonr at cox.net

e = {e1, e2, e3, e4, e5};

Times @@ e

e1 e2 e3 e4 e5

which is shorthand for

Apply[Times, e]

e1 e2 e3 e4 e5


Bob Hanlon

---- Steve Gray <stevebg at roadrunner.com> wrote: 

=============
I haven't used Mathematica for a year so I've forgotten a lot. 
I want to take the product of elements in a list of definite length.
e={e1,e2,e3, ... ,e13} ("13" could be anything)
I want e1 e2 .... e13. In other words like Total[e]=e1+e2...

Steve Gray


--

Bob Hanlon



  • Prev by Date: Re: Trivial question
  • Next by Date: Re: Trivial question
  • Previous by thread: Re: Trivial question
  • Next by thread: Re: Newbie: Howjavascript:; to Draw the 2-dimensional feasible set