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: [mg96003] Re: define an heaviside in x=0
  • From: Jean-Marc Gulliet <jeanmarc.gulliet at gmail.com>
  • Date: Sat, 31 Jan 2009 06:46:17 -0500 (EST)
  • Organization: The Open University, Milton Keynes, UK
  • References: <gm0q8e$rrh$1@smc.vnet.net>

In article <gm0q8e$rrh$1 at smc.vnet.net>, ventutech at gmail.com wrote:

> 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?

In[1]:= 

    Unprotect[UnitStep];
    UnitStep[0] = 1/2;
    Protect[UnitStep];

    UnitStep[0]


Out[4]= 1/2

Regards,
--Jean-Marc


  • Prev by Date: Re: Can I Map[] this code?
  • Next by Date: FourierTransform
  • Previous by thread: Re: define an heaviside in x=0
  • Next by thread: NEWBIE: How do I use the results of a Solve?