generated from gnu-octave/pkg-example
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmpfr_cmp.m
21 lines (19 loc) · 887 Bytes
/
mpfr_cmp.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
function ret = mpfr_cmp (op1, op2)
% ret = mpfr_cmp (op1, op2)
%
% Compare OP1 and OP2. Return a positive value if OP1 > OP2, zero if
% OP1 = OP2, and a negative value if OP1 < OP2. Both OP1 and OP2 are
% considered to their full own precision, which may differ. If one
% of the operands is NaN, set the _erange_ flag and return zero.
%
% Note: These functions may be useful to distinguish the three
% possible cases. If you need to distinguish two cases only, it is
% recommended to use the predicate functions (e.g., ‘mpfr_equal_p’
% for the equality) described below; they behave like the IEEE 754
% comparisons, in particular when one or both arguments are NaN. But
% only floating-point numbers can be compared (you may need to do a
% conversion first).
%
ret = mex_apa_interface (1063, op1, op2);
end
% This function was automatically generated by "generate_m_files".