On 21 Mar 2009, at 10:22, Søren Hauberg wrote: > Hi All > > I just noticed that our implementation of the Heaviside function [1] > in > the 'specfun' package returns NaN at zero. Is that really the best > thing > to do? This is really a definition issue, but isn't it more common to > let > > H (0) = 0.5 > > ? We could possibly add an optional input argument that sets the value > of H (0). > > Thoughts? > > Søren > > [1] > http://octave.svn.sourceforge.net/viewvc/octave/trunk/octave-forge/main/specfun/inst/heaviside.m?revision=HEAD&content-type=text/plain
I also think this behaviour is strange but it is compatible... >> version ans = 7.5.0.338 (R2007b) >> heaviside(0) ans = NaN c. ------------------------------------------------------------------------------ Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com _______________________________________________ Octave-dev mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/octave-dev
