Re: recursive blues :(

• To: mathgroup at smc.vnet.net
• Subject: [mg70309] Re: recursive blues :(
• From: Jean-Marc Gulliet <jeanmarc.gulliet at gmail.com>
• Date: Thu, 12 Oct 2006 05:37:46 -0400 (EDT)
• Organization: The Open University, Milton Keynes, UK
• References: <egi1qo\$jaa\$1@smc.vnet.net>

```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
>
Typing syntacticly correct expressions should help:

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}}]
Plot[f[x], {x, -2, 2}];

Regards,
Jean-Marc

```

• Prev by Date: Re: Correlating binary variables
• Next by Date: Re: LessSame
• Previous by thread: recursive blues :(
• Next by thread: Re: recursive blues :(