Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #2811 > unrolled thread

Can't make function periodic for t<0

Started byyitzhakbg <yitzhakbg@gmail.com>
First post2011-05-30 10:35 +0000
Last post2011-05-30 10:35 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica


Contents

  Can't make function periodic for t<0 yitzhakbg <yitzhakbg@gmail.com> - 2011-05-30 10:35 +0000

#2811 — Can't make function periodic for t<0

Fromyitzhakbg <yitzhakbg@gmail.com>
Date2011-05-30 10:35 +0000
SubjectCan't make function periodic for t<0
Message-ID<irvrtm$8k1$1@smc.vnet.net>
This is the function to make periodic:
x[t_] := Piecewise[{{-1, -1/2 <= t < 0}, {1, 0 <= t < 1/2}}]

I saw DH's lovely post from 1/14/09:
"if we want some function f to have period L we may define an operator:
makeper[f_,L_]= f[Mod[#,L]]&
Here is an example. We want a sine with period 1:
sin1= makeper[Sin,1]"
I can't get it to work for t<0 because Mod always returns positive values.
Can anyone kindly help?
Yitzhak

[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web