mirror of
https://github.com/Z3Prover/z3
synced 2025-05-05 23:05:46 +00:00
throttle intervals
Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
This commit is contained in:
parent
999ca2ed70
commit
f24bd352e1
9 changed files with 517 additions and 24 deletions
|
@ -23,28 +23,28 @@
|
|||
#include "math/lp/nla_common.h"
|
||||
|
||||
namespace nla {
|
||||
class core;
|
||||
class core;
|
||||
|
||||
struct point {
|
||||
rational x;
|
||||
rational y;
|
||||
point(const rational& a, const rational& b): x(a), y(b) {}
|
||||
point() {}
|
||||
inline point& operator*=(rational a) {
|
||||
x *= a;
|
||||
y *= a;
|
||||
return *this;
|
||||
}
|
||||
inline point operator+(const point& b) const {
|
||||
return point(x + b.x, y + b.y);
|
||||
}
|
||||
struct point {
|
||||
rational x;
|
||||
rational y;
|
||||
point(const rational& a, const rational& b): x(a), y(b) {}
|
||||
point() {}
|
||||
inline point& operator*=(rational a) {
|
||||
x *= a;
|
||||
y *= a;
|
||||
return *this;
|
||||
}
|
||||
inline point operator+(const point& b) const {
|
||||
return point(x + b.x, y + b.y);
|
||||
}
|
||||
|
||||
inline point operator-(const point& b) const {
|
||||
return point(x - b.x, y - b.y);
|
||||
}
|
||||
};
|
||||
inline point operator-(const point& b) const {
|
||||
return point(x - b.x, y - b.y);
|
||||
}
|
||||
};
|
||||
|
||||
inline std::ostream& operator<<(std::ostream& out, point const& a) { return out << "(" << a.x << ", " << a.y << ")"; }
|
||||
inline std::ostream& operator<<(std::ostream& out, point const& a) { return out << "(" << a.x << ", " << a.y << ")"; }
|
||||
|
||||
|
||||
class tangents : common {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue