5549
|
1 ## Copyright (C) 2005 William Poetra Yoga Hadisoeseno |
|
2 ## |
|
3 ## This file is part of Octave. |
|
4 ## |
|
5 ## Octave is free software; you can redistribute it and/or modify |
|
6 ## it under the terms of the GNU General Public License as published by |
|
7 ## the Free Software Foundation; either version 2 of the License, or |
|
8 ## (at your option) any later version. |
|
9 ## |
|
10 ## Octave is distributed in the hope that it will be useful, |
|
11 ## but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
12 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
13 ## GNU General Public License for more details. |
|
14 ## |
|
15 ## You should have received a copy of the GNU General Public License |
5720
|
16 ## along with Octave; see the file COPYING. If not, write to the Free |
|
17 ## Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA |
|
18 ## 02110-1301, USA. |
5549
|
19 |
|
20 ## -*- texinfo -*- |
5550
|
21 ## @deftypefn {Function File} {} isequalwithequalnans (@var{x1}, @var{x2}, @dots{}) |
|
22 ## Assuming NaN == NaN, return true if all of @var{x1}, @var{x2}, @dots{} |
|
23 ## are equal. |
5642
|
24 ## @seealso{isequal} |
5549
|
25 ## @end deftypefn |
|
26 |
5550
|
27 function retval = isequalwithequalnans (x, varargin) |
5549
|
28 |
5550
|
29 if (nargin > 1) |
|
30 retval = __isequal__ (1, x, varargin{:}); |
|
31 else |
6046
|
32 print_usage (); |
5550
|
33 endif |
5549
|
34 |
|
35 endfunction |
|
36 |