]> www.ginac.de Git - cln.git/blob - src/real/elem/cl_R_minus.cc
ee2b105f0225b140476eea25ed63c4eee70333ab
[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 "cl_real.h"
8
9
10 // Implementation.
11
12 #include "cl_R.h"
13 #include "cl_rational.h"
14 #include "cl_float.h"
15
16 const cl_R operator- (const cl_R& x, const cl_R& y)
17 {
18         if (eq(y,0)) { return x; }
19         elif (eq(x,0)) { return -y; }
20         else
21 #define minus(a,b) a-b
22 GEN_R_OP2_2(x,y, minus, return)
23 }