Skip to content

Commit

Permalink
Remove duplicate definitions in Valuable.cpp to resolve redefinition …
Browse files Browse the repository at this point in the history
…errors
  • Loading branch information
devin-ai-integration[bot] authored and ohhmm committed Sep 17, 2024
1 parent 353a904 commit b5bce4f
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions omnn/math/Valuable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1321,25 +1321,6 @@ const ::omnn::math::Variable& operator"" _va(const char* v, std::size_t l) {
}
}

Valuable& Valuable::lcm(const Valuable& v) {
if (exp) {
Valuable& o = exp->lcm(v);
if (o.exp) {
exp = o.exp;
}
} else if (IsZero() || v.IsZero()) {
} else if (operator==(v)) {
Become(0);
} else {
auto gcd = GCD(v);
operator*=(v);
sq();
sqrt();
operator/=(gcd);
}
return *this;
}

Valuable& Valuable::d(const Variable& x)
{
if(exp) {
Expand Down

0 comments on commit b5bce4f

Please sign in to comment.