Error function

Rob Mahurin rob at utk.edu
Thu Jul 2 09:40:30 CDT 2009


On Jul 2, 2009, at 6:41 AM, Marcin Sleczka wrote:
> I've got a problem with an error function. I would like to compute  
> error
> function with complex argument. I know that it isn't possible with  
> erf(x)
> function. Few months ago (when I have Octave 3.0.x) I downloaded  
> erfz(z)
> which could compute error function with complex inputs. Now when I  
> have
> newest Octave it's impossible. I obtain error massage:
> error:
> error: called from:
> error:  ~/erfz.m at line 20, column 4
> It's possible to compute error function with complex inputs in newest
> Octave?

I guess from googling you got your erfz.m from
	http://www.mathworks.com/matlabcentral/files/3574/erfz.m

That function begins with
	error(nargchk(1, 1, nargin));

and runs if you comment out that line.

This looks like a compatibility bug in error, which is fixed by the  
attached.  Jaroslav, please also apply this to the 3.2.x series.

Rob

-- 
Rob Mahurin
University of Manitoba, Dept. of Physics & Astronomy
at:	Oak Ridge National Laboratory	865 207 2594
	Oak Ridge, Tennessee		rob at utk.edu

-------------- next part --------------
A non-text attachment was scrubbed...
Name: error.patch
Type: application/octet-stream
Size: 871 bytes
Desc: not available
Url : https://www-old.cae.wisc.edu/pipermail/help-octave/attachments/20090702/9f3e1dc2/attachment.obj 


More information about the Help-octave mailing list