Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2009

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

Search the Archive

Re: define an heaviside in x=0

  • To: mathgroup at smc.vnet.net
  • Subject: [mg96025] Re: define an heaviside in x=0
  • From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
  • Date: Sun, 1 Feb 2009 04:43:28 -0500 (EST)
  • References: <gm0q8e$rrh$1@smc.vnet.net>

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