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

MathGroup Archive 2005

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

Search the Archive

Re: "Alternating" function

  • To: mathgroup at smc.vnet.net
  • Subject: [mg63280] Re: "Alternating" function
  • From: David Bailey <dave at Remove_Thisdbailey.co.uk>
  • Date: Thu, 22 Dec 2005 00:04:43 -0500 (EST)
  • References: <doamp5$em8$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Hello,

Try

Fold[x + (-1)^#2*f[#1] & , x, Range[{5}]]

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



  • Prev by Date: Re: Unexpected behavior of Simplify
  • Next by Date: Converting Strings to Ints.
  • Previous by thread: Re: "Alternating" function
  • Next by thread: Re: "Alternating" function