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

View File

@@ -119,7 +119,7 @@ return big;
template <typename T>
inline T lcm(T a, T b)
{
return (a*b)/gcd(a,b);
return (a/gcd(a,b))*b;
}