]> www.ginac.de Git - cln.git/blob - src/complex/elem/cl_C_imagpart.cc
Finalize CLN 1.3.7 release.
[cln.git] / src / complex / elem / cl_C_imagpart.cc
1 // imagpart().
2
3 // General includes.
4 #include "base/cl_sysdep.h"
5
6 // Specification.
7 #include "cln/complex.h"
8
9
10 // Implementation.
11
12 #include "complex/cl_C.h"
13
14 namespace cln {
15
16 const cl_R imagpart (const cl_N& x)
17 {
18         if (realp(x))
19                 return 0;
20         else {
21                 DeclareType(cl_C,x);
22                 return imagpart(x);
23         }
24 }
25
26 }  // namespace cln