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.mThat 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@...
_______________________________________________
Help-octave mailing list
Help-octave@...
https://www-old.cae.wisc.edu/mailman/listinfo/help-octave