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 >