-// 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.
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