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