]> www.ginac.de Git - cln.git/blob - src/real/elem/cl_R_minus.cc
* All Files have been modified for inclusion of namespace cln;
[cln.git] / src / real / elem / cl_R_minus.cc
1 // binary operator -
2
3 // General includes.
4 #include "cl_sysdep.h"
5
6 // Specification.
7 #include "cln/real.h"
8
9
10 // Implementation.
11
12 #include "cl_R.h"
13 #include "cln/rational.h"
14 #include "cln/float.h"
15
16 namespace cln {
17
18 const cl_R operator- (const cl_R& x, const cl_R& y)
19 {
20         if (eq(y,0)) { return x; }
21         elif (eq(x,0)) { return -y; }
22         else
23 #define minus(a,b) a-b
24 GEN_R_OP2_2(x,y, minus, return)
25 }
26
27 }  // namespace cln