MathGroup Archive 2002

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

Search the Archive

Re: Question regarding periods

  • To: mathgroup at smc.vnet.net
  • Subject: [mg33368] Re: Question regarding periods
  • From: "Allan Hayes" <hay at haystack.demon.co.uk>
  • Date: Mon, 18 Mar 2002 00:18:44 -0500 (EST)
  • References: <a71rnd$gff$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

"i never knew myself" <sapsi0s at isid.ac.in> wrote in message
news:a71rnd$gff$1 at smc.vnet.net...
> Hi,
> I have function defined on [-1,1] and wish to extend it to the real line,
> by making it periodic function with period 2.
> Is there any period keyword or neat and nifty method to do this in
Mathematica
> 2.2?


If you want to extend from (-1,1]

    ef[x_]:= f[Mod[x,2,1]]

If you want to extend from [-1,1)

    ef[x_]:= f[Mod[x,2,-1]]

--
Allan

---------------------
Allan Hayes
Mathematica Training and Consulting
Leicester UK
www.haystack.demon.co.uk
hay at haystack.demon.co.uk
Voice: +44 (0)116 271 4198
Fax: +44 (0)870 164 0565





  • Prev by Date: Re: ListConvolve Problem?
  • Next by Date: Re: Power Spectrum Analysis
  • Previous by thread: Question regarding periods
  • Next by thread: NextComposition - the bug?