Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2007
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2007

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

Search the Archive

Re: Mapping a pure function with 2 conponents.

  • To: mathgroup at smc.vnet.net
  • Subject: [mg77239] Re: Mapping a pure function with 2 conponents.
  • From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
  • Date: Wed, 6 Jun 2007 06:50:28 -0400 (EDT)
  • Organization: Uni Leipzig
  • References: <f43i20$3hl$1@smc.vnet.net>
  • Reply-to: kuska at informatik.uni-leipzig.de

Hi,

and

Apply[#1^2 + #2 &, {{0, 1}, {2, 3}, {4, 5}}, 1]

will do it -- without a Map[]

Regards
   Jens

phoenix7744 at gmail.com wrote:
> I'm trying to get the following code to work:
> 
> Map[#1^2 + #2 &, {{0, 1}, {2, 3}, {4, 5}}]
> 
> The goal is to use a pure function in order to achieve the result:
> {1, 7, 21}
> 
> The issue is that the evaluation involves   #1^2 + #2 & [{0,1}]
> instead of #1^2 + #2 & [0,1]
> 
> Thanks, in advance.
> 
> 


  • Prev by Date: Re: mathematica 6 frontend and linux
  • Next by Date: Re: Polynomial as a List
  • Previous by thread: Re: Mapping a pure function with 2 conponents.
  • Next by thread: Re: Mapping a pure function with 2 conponents.