Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2006
*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 2006

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

Search the Archive

Re: recursive blues :(

  • To: mathgroup at smc.vnet.net
  • Subject: [mg70298] Re: [mg70282] recursive blues :(
  • From: gardyloo <gardyloo at mail.wsu.edu>
  • Date: Thu, 12 Oct 2006 05:37:08 -0400 (EDT)

It looks to me as though it does, if you fix the inequalities in the
definition:

f[x_] := Piecewise[{{f[x + 2], x < -0.5},
    {2, -0.5 <= x <= 0.5}, {1, Inequality[0.5, Less, x,
      LessEqual, 1.5]}, {f[x - 2], x > 1.5}}]

      Best of luck!

          

n00dle0 at yahoo.com wrote:
> Hi,
>
> Why doesn't the following function represent a recurvive and periodic
> function?
>
> \!\(\*
>   RowBox[{\(f[x_]\), " ", ":=", " ",
>     RowBox[{"\[Piecewise]", GridBox[{
>           {\(f[x + 2]\), \(x < \(-0.5\)\)},
>           {"2", \(\(-0.5\) = \ x = 0.5\)},
>           {"1", \(0.5 < x = 1.5\)},
>           {\(f[x - 2]\), \(x > 1.5\)}
>           }]}]}]\)
>
>
> What are all possible ways to represent periodic functions?
>
> Thanks,
> Ash
>
>
>   

-- 
==========================================================
Curtis Osterhoudt          
gardyloo at mail.remove_this.wsu.and_this.edu
PGP Key ID: 0x088E6D7A
Please avoid sending me Word or PowerPoint attachments
See http://www.gnu.org/philosophy/no-word-attachments.html
==========================================================


  • Prev by Date: RE: Ordinate in Plot Command
  • Next by Date: integrate an interpolated function
  • Previous by thread: Re: recursive blues :(
  • Next by thread: Re: recursive blues :(