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

MathGroup Archive 2009

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

Search the Archive

Re: help^please

  • To: mathgroup at smc.vnet.net
  • Subject: [mg97966] Re: help^please
  • From: David Bailey <dave at removedbailey.co.uk>
  • Date: Thu, 26 Mar 2009 05:43:38 -0500 (EST)
  • References: <gqd1o0$nqq$1@smc.vnet.net>

Fabrizio wrote:
> There are 3 small problems.
> 
> 1)Using the functions:
> 
> Position, ReplacePart, Take, Drop, Part, Rest, First and Last
> 
> I have to get { { 1 } , { 2 , 3 , 4 , 5 , 6 } } out of Range[ 6 ]
> 
> 
> 2) Using the functions:
> 
> Table, Random, Range
> 
> I have to get { {0} , { 0 , 2 } , { 0 , 2 , 4 } , { 0 , 2 , 4 , 6 } , { 0 , 2 , 4 , 6 , 8 } } in TWO ways.
> 
> ---> I found for this second problem:
> 
> Table[ 2 * j - 2 , { i , 5 } , { j , i } ]
> 
> but another method using the same functions ?
> 
> 3)using the functions as in problem 1:
> 
> Use the lists { a , b , c , d } and { 3 , 2 , 4 , 1 } to create the list { c , b , d , a } in one step.
> 
> complete moron
> 
The only way you could be faced with a requirement like that, is as a 
college exercise! If you get help to solve your exercises, that will 
leave you no more skilled than before - so there would not be any point, 
would there?

David Bailey
http://www.dbaileyconsultancy.co.uk


  • Prev by Date: Re: help^please
  • Next by Date: Re: Question about how to graph the vector field for the
  • Previous by thread: Re: help^please
  • Next by thread: Re: help^please