Re: Question on making a piecewise function periodic tia sal2
- To: mathgroup at smc.vnet.net
- Subject: [mg119336] Re: Question on making a piecewise function periodic tia sal2
- From: Bill Rowe <readnews at sbcglobal.net>
- Date: Tue, 31 May 2011 07:46:17 -0400 (EDT)
On 5/30/11 at 7:47 AM, yitzhakbg at gmail.com (yitzhakbg) wrote:
>How could we get this to work for t<0?, since Mod always returns
>positive
I truly don't know what it is you want to accomplish. But
Mathematica's Mod function can return negative values by making
use of the third argument. For example,
In[5]:= Mod[RandomInteger[100, {5}], 3, -1]
Out[5]= {0,1,1,0,-1}