Fri 06 May 2016 04:58:18 PM UTC, comment #1:
This looks related to bug #45810 which was marked as fixed.
The Matlab documentation string for cplxpair is here (http://www.mathworks.com/help/matlab/ref/cplxpair.html) and it doesn't mention anything about the tolerance being in the range 0 to 1.
However, the description of tolerance is ambiguous.
I'm not sure exactly how to interpret that. Octave has chosen to interpret it as
But it would be quicker if we could calculate
It's not quite the same thing as you can see below
In any case, Octave may have the correct default tolerance, but Matlab uses an entirely different method of determining the tolerance when a value is specified.
The only way to go about this is to test different inputs to the cplxpair function and see what happens.
Try the test case from bug #45810
What do the following do under Matlab?
If you are right that tolerance is in the range [0,1) then three of the statements should produce an error.
|