working on contfrac

This commit is contained in:
2022-02-19 19:10:24 +01:00
parent e67e6a5797
commit b4aaa77da4
4 changed files with 186 additions and 14 deletions

12
t.cc
View File

@@ -2431,6 +2431,16 @@ NRMat<double> mm=m.permuted_rows(p);
cout <<mm;
}
if(1)
{
Rational<int> p,q;
cin>>p>>q;
cout <<p+q<<endl;
cout <<p-q<<endl;
cout <<p*q<<endl;
cout <<p/q<<endl;
}
if(0)
{
double x;
@@ -2463,7 +2473,7 @@ double zzz=zz.value();
cout <<z<<" "<<zzz<<endl;
}
if(1)
if(0)
{
Rational<int> r({11,101});
ContFrac<int> x(r);