MathGroup Archive 1998

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

Search the Archive

Re: Rectangular function

  • To: mathgroup at
  • Subject: [mg14053] Re: [mg14036] Rectangular function
  • From: BobHanlon at
  • Date: Fri, 18 Sep 1998 03:50:35 -0400
  • Sender: owner-wri-mathgroup at

A simpler approach rather than my initial use of UnitStep is to just use
the Sign function.

rect[x_, intvl_:1] := Sign[Sin[x Pi/intvl]] Plot[rect[x], {x, 0, 6}];
Plot[(rect[x]+1)/2, {x, 0, 6}];
Plot[rect[x, Pi] Sin[x], {x, 0, 4Pi}];

Bob Hanlon

In a message dated 9/16/98 6:21:32 PM, A.Strobel at wrote:

>I'd like to simulate a rectangular voltage source. How can I define such
>a function in Mathematica?
>Example: It must be possible then to multiply a Sinus-function with the
>rectangular function.

  • Prev by Date: Re: MathLink & Visual Basic 4.0
  • Next by Date: Re: Rectangular function
  • Previous by thread: Rectangular function
  • Next by thread: Re: Rectangular function