MathGroup Archive 2011

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

Search the Archive

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}



  • Prev by Date: Parallelize vs Compile
  • Next by Date: Akima-Interpolation
  • Previous by thread: Re: Question on making a piecewise function periodic tia sal2
  • Next by thread: How to Catch FindRoot::lstol error in FindRoot loop