Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2000
*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 2000

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

Search the Archive

Re: Piecewise functions

  • To: mathgroup at smc.vnet.net
  • Subject: [mg23145] Re: [mg23119] Piecewise functions
  • From: Jack Goldberg <jackgold at math.lsa.umich.edu>
  • Date: Thu, 20 Apr 2000 03:21:05 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

The "best" solution is to construct piecewise functions 
using UnitStep[].  I well-known device for doing this 
is to observe that  

f[x](UnitStep[x-a]-UnitStep[x-b]) 

gives zero for x<a and x>b  and give f[x] in a<x<b. If you are 
using the Integrate function, then the definition of UnitStep[x]
at x = 0 is irrelevent so you need not worry about what happens 
at x=a or x=b.

Jack

   

On Wed, 19 Apr 2000, An Le wrote:

> Can someone send me some notebook and package files to do piecewise
> functions? I can't seem to be able to do it with mathematica.
> 
> The only thing i get close to is using the Which[] function, but I can't
> integrate with that function.
> 
> Thanks...
> 
> 



  • Prev by Date: Re: Keyboard shortcuts do not work
  • Next by Date: Re: Clear or remove definitions including Subscripts
  • Previous by thread: Re: Piecewise functions
  • Next by thread: RE: Piecewise functions