Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
1998
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 1998

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

Search the Archive

Re: Rectangular function

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

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 gmx.net 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