MathGroup Archive 2009

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

Search the Archive

Re: define an heaviside in x=0


Hi,

Unprotect[UnitStep]
UnitStep[0] = 1/2
UnitStep[0.] = 0.5
Protect[UnitStep]

Regards
   Jens

ventutech at gmail.com wrote:
> Dear all,
> 
> how can I define an Heaviside Function that returns 1/2 if evaluated in zero?
> I need it for numerical integrals. Unitstep returns 1. How can I
> override it and make it return 1/2?
> 
> Thanks in advance for your support!
> 
> Davide
> 


  • Prev by Date: Importing a PDF file
  • Next by Date: Re: BarChart3D with Ticks-option in Mathematica 7
  • Previous by thread: Re: Importing a PDF file
  • Next by thread: Re: BarChart3D with Ticks-option in Mathematica 7