progressing on contfrac
This commit is contained in:
12
t.cc
12
t.cc
@@ -2431,7 +2431,7 @@ NRMat<double> mm=m.permuted_rows(p);
|
||||
cout <<mm;
|
||||
}
|
||||
|
||||
if(1)
|
||||
if(0)
|
||||
{
|
||||
double x;
|
||||
cin >>x;
|
||||
@@ -2463,5 +2463,15 @@ double zzz=zz.value();
|
||||
cout <<z<<" "<<zzz<<endl;
|
||||
}
|
||||
|
||||
if(1)
|
||||
{
|
||||
Rational<int> r({11,101});
|
||||
ContFrac<int> x(r);
|
||||
ContFrac<int> y= x+Rational<int>({2,3});
|
||||
cout<<Rational<int>(y)<<endl;
|
||||
ContFrac<int> z= x*Rational<int>({2,3});
|
||||
cout<<Rational<int>(z)<<endl;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user