diff options
author | Andrew Reynolds <andrew.j.reynolds@gmail.com> | 2019-12-18 08:44:06 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-18 08:44:06 -0600 |
commit | b0ef3a7e604d8b5a01c7fff2b149987c91d08baf (patch) | |
tree | db007d024968bdbb581a1b634334fbd847647f1c /src/theory/arith | |
parent | 9c2c0581e0a325aad8cef463cfcc72b1164f79f5 (diff) |
Increment Taylor degree for tangent and secant plane inferences for transcendentals (#3577)
Diffstat (limited to 'src/theory/arith')
-rw-r--r-- | src/theory/arith/nonlinear_extension.cpp | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/theory/arith/nonlinear_extension.cpp b/src/theory/arith/nonlinear_extension.cpp index e8b1b3b93..46be960c7 100644 --- a/src/theory/arith/nonlinear_extension.cpp +++ b/src/theory/arith/nonlinear_extension.cpp @@ -3042,21 +3042,22 @@ bool NonlinearExtension::checkTfTangentPlanesFun(Node tf, NodeManager* nm = NodeManager::currentNM(); Kind k = tf.getKind(); + + // Figure 3 : c + Node c = d_model.computeAbstractModelValue(tf[0]); + int csign = c.getConst<Rational>().sgn(); + Assert(csign == 1 || csign == -1); + // Figure 3: P_l, P_u // mapped to for signs of c std::map<int, Node> poly_approx_bounds[2]; std::vector<Node> pbounds; - getPolynomialApproximationBounds(k, d, pbounds); + getPolynomialApproximationBoundForArg(k, c, d, pbounds); poly_approx_bounds[0][1] = pbounds[0]; poly_approx_bounds[0][-1] = pbounds[1]; poly_approx_bounds[1][1] = pbounds[2]; poly_approx_bounds[1][-1] = pbounds[3]; - // Figure 3 : c - Node c = d_model.computeAbstractModelValue(tf[0]); - int csign = c.getConst<Rational>().sgn(); - Assert(csign == 1 || csign == -1); - // Figure 3 : v Node v = d_model.computeAbstractModelValue(tf); |