]> www.ginac.de Git - cln.git/blobdiff - src/rational/misc/cl_RA_exptpos.cc
Remove internal inline versions of numerator/denominator(cl_RA).
[cln.git] / src / rational / misc / cl_RA_exptpos.cc
index 2db9d745909099167fc551b13fe18a54e6241026..550d55e2ed1808183e1567033e5fc5aa38413e57 100644 (file)
@@ -1,22 +1,24 @@
 // expt_pos().
 
 // General includes.
-#include "cl_sysdep.h"
+#include "base/cl_sysdep.h"
 
 // Specification.
-#include "cl_rational.h"
+#include "cln/rational.h"
 
 
 // Implementation.
 
-#include "cl_RA.h"
-#include "cl_integer.h"
+#include "rational/cl_RA.h"
+#include "cln/integer.h"
+
+namespace cln {
 
 const cl_RA expt_pos (const cl_RA& x, uintL y)
 {
   // Methode:
   // x Integer -> klar
-  // x Ratio a/b -> x^y = (a^y)/(b^y), gekürzt, mit b^y>=b>1.
+  // x Ratio a/b -> x^y = (a^y)/(b^y), gekürzt, mit b^y>=b>1.
        if (integerp(x)) {
                DeclareType(cl_I,x);
                return expt_pos(x,y);
@@ -27,3 +29,5 @@ const cl_RA expt_pos (const cl_RA& x, uintL y)
                return I_I_to_RT(expt_pos(a,y),expt_pos(b,y));
        }
 }
+
+}  // namespace cln