7 #include "cl_complex.h"
15 cl_boolean cl_equal (const cl_N& x, const cl_N& y)
18 // Falls beide reell, klar.
19 // Falls x reell, y komplex: (= x (realpart y)) und (zerop (imagpart y)).
20 // Falls x komplex, y reell: analog
21 // Falls beide komplex: Realteile und Imaginärteile jeweils gleich?
31 if (!zerop(imagpart(y)))
33 return cl_equal(x,realpart(y));
40 if (!zerop(imagpart(x)))
42 return cl_equal(realpart(x),y);
46 if (!cl_equal(realpart(x),realpart(y)))
48 if (!cl_equal(imagpart(x),imagpart(y)))