]> www.ginac.de Git - cln.git/blobdiff - src/real/transcendental/cl_R_cossin.cc
Cater to the fact that g++ 4.3 will use a different naming for
[cln.git] / src / real / transcendental / cl_R_cossin.cc
index 0a3fc7e3241b623b770ac02e2259cace805a0495..8893f71327db8619c9cb4f73cfce3d3c0da74b13 100644 (file)
@@ -1,18 +1,20 @@
-// cl_cos_sin().
+// cos_sin().
 
 // General includes.
 #include "cl_sysdep.h"
 
 // Specification.
-#include "cl_real.h"
+#include "cln/real.h"
 
 
 // Implementation.
 
-#include "cl_float.h"
+#include "cln/float.h"
 #include "cl_R.h"
 
-const cl_cos_sin_t cl_cos_sin (const cl_R& x)
+namespace cln {
+
+const cos_sin_t cos_sin (const cl_R& x)
 {
 // Methode:
 // x rational -> bei x=0 (1,0) als Ergebnis, sonst x in Float umwandeln.
@@ -21,10 +23,12 @@ const cl_cos_sin_t cl_cos_sin (const cl_R& x)
        if (rationalp(x)) {
                DeclareType(cl_RA,x);
                if (zerop(x)) // x=0 -> (1,0) als Ergebnis
-                       return cl_cos_sin_t(1,0);
-               return cl_cos_sin(cl_float(x)); // sonst in Float umwandeln
+                       return cos_sin_t(1,0);
+               return cos_sin(cl_float(x)); // sonst in Float umwandeln
        } else {
                DeclareType(cl_F,x);
-               return cl_cos_sin(x);
+               return cos_sin(x);
        }
 }
+
+}  // namespace cln