Generated on for Gecode by doxygen 1.17.0
trigonometric.cpp
Go to the documentation of this file.
1/* -*- mode: C++; c-basic-offset: 2; indent-tabs-mode: nil -*- */
2/*
3 * Main authors:
4 * Christian Schulte <schulte@gecode.dev>
5 * Vincent Barichard <Vincent.Barichard@univ-angers.fr>
6 *
7 * Copyright:
8 * Christian Schulte, 2005
9 * Vincent Barichard, 2012
10 *
11 * This file is part of Gecode, the generic constraint
12 * development environment:
13 * http://www.gecode.dev
14 *
15 * Permission is hereby granted, free of charge, to any person obtaining
16 * a copy of this software and associated documentation files (the
17 * "Software"), to deal in the Software without restriction, including
18 * without limitation the rights to use, copy, modify, merge, publish,
19 * distribute, sublicense, and/or sell copies of the Software, and to
20 * permit persons to whom the Software is furnished to do so, subject to
21 * the following conditions:
22 *
23 * The above copyright notice and this permission notice shall be
24 * included in all copies or substantial portions of the Software.
25 *
26 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
27 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
28 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
29 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
30 * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
31 * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
32 * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
33 *
34 */
35
36#include "test/float.hh"
37#include <gecode/minimodel.hh>
38
39#ifdef GECODE_HAS_MPFR
40
41#include <cmath>
42#include <algorithm>
43
44namespace Test { namespace Float {
45
47 namespace Trigonometric {
48
50 class SinXY : public Test {
51 public:
53 SinXY(const std::string& s, const Gecode::FloatVal& d, Gecode::FloatNum st)
54 : Test(TestTags::sweep(),"Trigonometric::Sin::XY::"+s,2,d,st,CPLT_ASSIGNMENT,false) {}
55
56 virtual MaybeType solution(const Assignment& x) const {
57 return eq(sin(x[0]), x[1]);
58 }
59
60 virtual void post(Gecode::Space& home, Gecode::FloatVarArray& x) {
61 if (flip())
62 Gecode::sin(home, x[0], x[1]);
63 else
64 Gecode::rel(home, sin(x[0]) == x[1]);
65 }
66 };
67
69 class SinXYSol : public Test {
70 public:
72 SinXYSol(const std::string& s, const Gecode::FloatVal& d, Gecode::FloatNum st)
73 : Test(TestTags::sweep(),"Trigonometric::Sin::XY::Sol::"+s,2,d,st,EXTEND_ASSIGNMENT,false) {}
74
75 virtual MaybeType solution(const Assignment& x) const {
76 return eq(sin(x[0]), x[1]);
77 }
78
79 virtual bool extendAssignment(Assignment& x) const {
80 Gecode::FloatVal d = sin(x[0]);
81 if (Gecode::Float::subset(d, dom)) {
82 x.set(1, d);
83 return true;
84 } else {
85 return false;
86 }
87 }
88
89 virtual void post(Gecode::Space& home, Gecode::FloatVarArray& x) {
90 Gecode::sin(home, x[0], x[1]);
91 }
92 };
93
95 class SinXX : public Test {
96 public:
98 SinXX(TestTags tags, const std::string& s,
100 : Test(tags,"Trigonometric::Sin::XX::"+s,
101 1,d,st,CPLT_ASSIGNMENT,false) {}
102
103 virtual MaybeType solution(const Assignment& x) const {
104 return eq(sin(x[0]), x[0]);
105 }
106
107 virtual void post(Gecode::Space& home, Gecode::FloatVarArray& x) {
108 Gecode::sin(home, x[0], x[0]);
109 }
110 };
111
113 class CosXY : public Test {
114 public:
116 CosXY(const std::string& s, const Gecode::FloatVal& d, Gecode::FloatNum st)
117 : Test(TestTags::sweep(),"Trigonometric::Cos::XY::"+s,2,d,st,CPLT_ASSIGNMENT,false) {}
118
119 virtual MaybeType solution(const Assignment& x) const {
120 return eq(cos(x[0]), x[1]);
121 }
122
123 virtual void post(Gecode::Space& home, Gecode::FloatVarArray& x) {
124 if (flip())
125 Gecode::cos(home, x[0], x[1]);
126 else
127 Gecode::rel(home, cos(x[0]) == x[1]);
128 }
129 };
130
132 class CosXYSol : public Test {
133 public:
135 CosXYSol(const std::string& s, const Gecode::FloatVal& d, Gecode::FloatNum st)
136 : Test(TestTags::sweep(),"Trigonometric::Cos::XY::Sol::"+s,2,d,st,EXTEND_ASSIGNMENT,false) {}
137
138 virtual MaybeType solution(const Assignment& x) const {
139 return eq(cos(x[0]), x[1]);
140 }
141
142 virtual bool extendAssignment(Assignment& x) const {
143 Gecode::FloatVal d = cos(x[0]);
144 if (Gecode::Float::subset(d, dom)) {
145 x.set(1, d);
146 return true;
147 } else {
148 return false;
149 }
150 }
151
152 virtual void post(Gecode::Space& home, Gecode::FloatVarArray& x) {
153 Gecode::cos(home, x[0], x[1]);
154 }
155 };
156
158 class CosXX : public Test {
159 public:
161 CosXX(TestTags tags, const std::string& s,
163 : Test(tags,"Trigonometric::Cos::XX::"+s,
164 1,d,st,CPLT_ASSIGNMENT,false) {}
165
166 virtual MaybeType solution(const Assignment& x) const {
167 return eq(cos(x[0]), x[0]);
168 }
169
170 virtual void post(Gecode::Space& home, Gecode::FloatVarArray& x) {
171 Gecode::cos(home, x[0], x[0]);
172 }
173 };
174
176 class TanXY : public Test {
177 public:
179 TanXY(const std::string& s, const Gecode::FloatVal& d, Gecode::FloatNum st)
180 : Test(TestTags::sweep(),"Trigonometric::Tan::XY::"+s,2,d,st,CPLT_ASSIGNMENT,false) {}
181
182 virtual MaybeType solution(const Assignment& x) const {
183 return eq(tan(x[0]), x[1]);
184 }
185
186 virtual void post(Gecode::Space& home, Gecode::FloatVarArray& x) {
187 if (flip())
188 Gecode::tan(home, x[0], x[1]);
189 else
190 Gecode::rel(home, tan(x[0]) == x[1]);
191 }
192 };
193
195 class TanXYSol : public Test {
196 public:
198 TanXYSol(const std::string& s, const Gecode::FloatVal& d, Gecode::FloatNum st)
199 : Test(TestTags::sweep(),"Trigonometric::Tan::XY::Sol::"+s,2,d,st,EXTEND_ASSIGNMENT,false) {}
200
201 virtual MaybeType solution(const Assignment& x) const {
202 return eq(tan(x[0]), x[1]);
203 }
204
205 virtual bool extendAssignment(Assignment& x) const {
206 Gecode::FloatVal d = tan(x[0]);
207 if (Gecode::Float::subset(d, dom)) {
208 x.set(1, d);
209 return true;
210 } else {
211 return false;
212 }
213 }
214
215 virtual void post(Gecode::Space& home, Gecode::FloatVarArray& x) {
216 Gecode::tan(home, x[0], x[1]);
217 }
218 };
219
221 class TanXX : public Test {
222 public:
224 TanXX(TestTags tags, const std::string& s,
226 : Test(tags,"Trigonometric::Tan::XX::"+s,
227 1,d,st,CPLT_ASSIGNMENT,false) {}
228
229 virtual MaybeType solution(const Assignment& x) const {
230 return eq(tan(x[0]), x[0]);
231 }
232
233 virtual void post(Gecode::Space& home, Gecode::FloatVarArray& x) {
234 Gecode::tan(home, x[0], x[0]);
235 }
236 };
237
239 class ASinXY : public Test {
240 public:
242 ASinXY(const std::string& s, const Gecode::FloatVal& d, Gecode::FloatNum st)
243 : Test(TestTags::sweep(),"Trigonometric::ASin::XY::"+s,2,d,st,CPLT_ASSIGNMENT,false) {}
244
245 virtual MaybeType solution(const Assignment& x) const {
246 if ((x[0].min() > 1.0) || (x[0].max() < -1.0))
247 return MT_FALSE;
248 return eq(asin(x[0]), x[1]);
249 }
250
251 virtual void post(Gecode::Space& home, Gecode::FloatVarArray& x) {
252 if (flip())
253 Gecode::asin(home, x[0], x[1]);
254 else
255 Gecode::rel(home, asin(x[0]) == x[1]);
256 }
257 };
258
260 class ASinXYSol : public Test {
261 public:
263 ASinXYSol(const std::string& s, const Gecode::FloatVal& d, Gecode::FloatNum st)
264 : Test(TestTags::sweep(),"Trigonometric::ASin::XY::Sol::"+s,2,d,st,EXTEND_ASSIGNMENT,false) {}
265
266 virtual MaybeType solution(const Assignment& x) const {
267 if ((x[0].min() > 1.0) || (x[0].max() < -1.0))
268 return MT_FALSE;
269 return eq(asin(x[0]), x[1]);
270 }
271
272 virtual bool extendAssignment(Assignment& x) const {
273 if ((x[0].min() > 1.0) || (x[0].max() < -1.0))
274 return false;
275 Gecode::FloatVal d = asin(x[0]);
276 if (Gecode::Float::subset(d, dom)) {
277 x.set(1, d);
278 return true;
279 } else {
280 return false;
281 }
282 }
283
284 virtual void post(Gecode::Space& home, Gecode::FloatVarArray& x) {
285 Gecode::asin(home, x[0], x[1]);
286 }
287 };
288
290 class ASinXX : public Test {
291 public:
293 ASinXX(TestTags tags, const std::string& s,
295 : Test(tags,"Trigonometric::ASin::XX::"+s,
296 1,d,st,CPLT_ASSIGNMENT,false) {}
297
298 virtual MaybeType solution(const Assignment& x) const {
299 if ((x[0].min() > 1.0) || (x[0].max() < -1.0))
300 return MT_FALSE;
301 return eq(asin(x[0]), x[0]);
302 }
303
304 virtual void post(Gecode::Space& home, Gecode::FloatVarArray& x) {
305 Gecode::asin(home, x[0], x[0]);
306 }
307 };
308
310 class ACosXY : public Test {
311 public:
313 ACosXY(const std::string& s, const Gecode::FloatVal& d, Gecode::FloatNum st)
314 : Test(TestTags::sweep(),"Trigonometric::ACos::XY::"+s,2,d,st,CPLT_ASSIGNMENT,false) {}
315
316 virtual MaybeType solution(const Assignment& x) const {
317 if ((x[0].min() > 1.0) || (x[0].max() < -1.0))
318 return MT_FALSE;
319 return eq(acos(x[0]), x[1]);
320 }
321
322 virtual void post(Gecode::Space& home, Gecode::FloatVarArray& x) {
323 if (flip())
324 Gecode::acos(home, x[0], x[1]);
325 else
326 Gecode::rel(home, acos(x[0]) == x[1]);
327 }
328 };
329
331 class ACosXYSol : public Test {
332 public:
334 ACosXYSol(const std::string& s, const Gecode::FloatVal& d, Gecode::FloatNum st)
335 : Test(TestTags::sweep(),"Trigonometric::ACos::XY::Sol::"+s,2,d,st,EXTEND_ASSIGNMENT,false) {}
336
337 virtual MaybeType solution(const Assignment& x) const {
338 if ((x[0].min() > 1.0) || (x[0].max() < -1.0))
339 return MT_FALSE;
340 return eq(acos(x[0]), x[1]);
341 }
342
343 virtual bool extendAssignment(Assignment& x) const {
344 if ((x[0].min() > 1.0) || (x[0].max() < -1.0))
345 return false;
346 Gecode::FloatVal d = acos(x[0]);
347 if (Gecode::Float::subset(d, dom)) {
348 x.set(1, d);
349 return true;
350 } else {
351 return false;
352 }
353 }
354
355 virtual void post(Gecode::Space& home, Gecode::FloatVarArray& x) {
356 Gecode::acos(home, x[0], x[1]);
357 }
358 };
359
361 class ACosXX : public Test {
362 public:
364 ACosXX(TestTags tags, const std::string& s,
366 : Test(tags,"Trigonometric::ACos::XX::"+s,
367 1,d,st,CPLT_ASSIGNMENT,false) {}
368
369 virtual MaybeType solution(const Assignment& x) const {
370 if ((x[0].min() > 1.0) || (x[0].max() < -1.0))
371 return MT_FALSE;
372 return eq(acos(x[0]), x[0]);
373 }
374
375 virtual void post(Gecode::Space& home, Gecode::FloatVarArray& x) {
376 Gecode::acos(home, x[0], x[0]);
377 }
378 };
379
381 class ATanXY : public Test {
382 public:
384 ATanXY(const std::string& s, const Gecode::FloatVal& d, Gecode::FloatNum st)
385 : Test(TestTags::sweep(),"Trigonometric::ATan::XY::"+s,2,d,st,CPLT_ASSIGNMENT,false) {}
386
387 virtual MaybeType solution(const Assignment& x) const {
388 return eq(atan(x[0]), x[1]);
389 }
390
391 virtual void post(Gecode::Space& home, Gecode::FloatVarArray& x) {
392 if (flip())
393 Gecode::atan(home, x[0], x[1]);
394 else
395 Gecode::rel(home, atan(x[0]) == x[1]);
396 }
397 };
398
400 class ATanXYSol : public Test {
401 public:
403 ATanXYSol(const std::string& s, const Gecode::FloatVal& d, Gecode::FloatNum st)
404 : Test(TestTags::sweep(),"Trigonometric::ATan::XY::Sol::"+s,2,d,st,EXTEND_ASSIGNMENT,false) {}
405
406 virtual MaybeType solution(const Assignment& x) const {
407 return eq(atan(x[0]), x[1]);
408 }
409
410 virtual bool extendAssignment(Assignment& x) const {
411 Gecode::FloatVal d = atan(x[0]);
412 if (Gecode::Float::subset(d, dom)) {
413 x.set(1, d);
414 return true;
415 } else {
416 return false;
417 }
418 }
419
420 virtual void post(Gecode::Space& home, Gecode::FloatVarArray& x) {
421 Gecode::atan(home, x[0], x[1]);
422 }
423 };
424
426 class ATanXX : public Test {
427 public:
429 ATanXX(TestTags tags, const std::string& s,
431 : Test(tags,"Trigonometric::ATan::XX::"+s,
432 1,d,st,CPLT_ASSIGNMENT,false) {}
433
434 virtual MaybeType solution(const Assignment& x) const {
435 return eq(atan(x[0]), x[0]);
436 }
437
438 virtual void post(Gecode::Space& home, Gecode::FloatVarArray& x) {
439 Gecode::atan(home, x[0], x[0]);
440 }
441 };
442
443 const Gecode::FloatNum step = 0.15;
444
448
452
456
460
464
468
472
476
480
484
488
492
496
500
504
508
512
516
520
522
523 }
524}}
525
526#endif
527// STATISTICS: test-float
Float value type.
Definition float.hh:329
Float variable array.
Definition float.hh:1030
Computation spaces.
Definition core.hpp:1787
TestTags tags(void) const
Return tags for test.
Definition test.hpp:95
Base class for assignments
Definition float.hh:94
virtual void set(int i, const Gecode::FloatVal &val)=0
Set assignment to value val for variable i.
static MaybeType eq(Gecode::FloatVal x, Gecode::FloatVal y)
Whether x and y are equal.
Definition float.hpp:281
bool flip(void)
Flip a coin and return true or false randomly.
Definition float.hpp:286
Gecode::FloatVal dom
Domain of variables.
Definition float.hh:264
Test for acosinus constraint with shared variables
virtual void post(Gecode::Space &home, Gecode::FloatVarArray &x)
Post constraint on x.
virtual MaybeType solution(const Assignment &x) const
Test whether x is solution
ACosXX(TestTags tags, const std::string &s, const Gecode::FloatVal &d, Gecode::FloatNum st)
Create and register test.
Test for acosinus constraint where solution is ensured
virtual void post(Gecode::Space &home, Gecode::FloatVarArray &x)
Post constraint on x.
ACosXYSol(const std::string &s, const Gecode::FloatVal &d, Gecode::FloatNum st)
Create and register test.
virtual bool extendAssignment(Assignment &x) const
Extend assignment x.
virtual MaybeType solution(const Assignment &x) const
Test whether x is solution
Test for acosinus constraint
ACosXY(const std::string &s, const Gecode::FloatVal &d, Gecode::FloatNum st)
Create and register test.
virtual void post(Gecode::Space &home, Gecode::FloatVarArray &x)
Post constraint on x.
virtual MaybeType solution(const Assignment &x) const
Test whether x is solution
Test for asinus constraint with shared variables
virtual void post(Gecode::Space &home, Gecode::FloatVarArray &x)
Post constraint on x.
ASinXX(TestTags tags, const std::string &s, const Gecode::FloatVal &d, Gecode::FloatNum st)
Create and register test.
virtual MaybeType solution(const Assignment &x) const
Test whether x is solution
Test for asinus constraint where solution is ensured
ASinXYSol(const std::string &s, const Gecode::FloatVal &d, Gecode::FloatNum st)
Create and register test.
virtual void post(Gecode::Space &home, Gecode::FloatVarArray &x)
Post constraint on x.
virtual bool extendAssignment(Assignment &x) const
Extend assignment x.
virtual MaybeType solution(const Assignment &x) const
Test whether x is solution
Test for asinus constraint
virtual MaybeType solution(const Assignment &x) const
Test whether x is solution
ASinXY(const std::string &s, const Gecode::FloatVal &d, Gecode::FloatNum st)
Create and register test.
virtual void post(Gecode::Space &home, Gecode::FloatVarArray &x)
Post constraint on x.
Test for atangent constraint with shared variables
virtual void post(Gecode::Space &home, Gecode::FloatVarArray &x)
Post constraint on x.
virtual MaybeType solution(const Assignment &x) const
Test whether x is solution
ATanXX(TestTags tags, const std::string &s, const Gecode::FloatVal &d, Gecode::FloatNum st)
Create and register test.
Test for atangent constraint where solution is ensured
virtual MaybeType solution(const Assignment &x) const
Test whether x is solution
virtual void post(Gecode::Space &home, Gecode::FloatVarArray &x)
Post constraint on x.
virtual bool extendAssignment(Assignment &x) const
Extend assignment x.
ATanXYSol(const std::string &s, const Gecode::FloatVal &d, Gecode::FloatNum st)
Create and register test.
Test for atangent constraint
ATanXY(const std::string &s, const Gecode::FloatVal &d, Gecode::FloatNum st)
Create and register test.
virtual MaybeType solution(const Assignment &x) const
Test whether x is solution
virtual void post(Gecode::Space &home, Gecode::FloatVarArray &x)
Post constraint on x.
Test for cosinus constraint with shared variables
CosXX(TestTags tags, const std::string &s, const Gecode::FloatVal &d, Gecode::FloatNum st)
Create and register test.
virtual MaybeType solution(const Assignment &x) const
Test whether x is solution
virtual void post(Gecode::Space &home, Gecode::FloatVarArray &x)
Post constraint on x.
Test for cosinus constraint where solution is ensured
virtual bool extendAssignment(Assignment &x) const
Extend assignment x.
virtual MaybeType solution(const Assignment &x) const
Test whether x is solution
CosXYSol(const std::string &s, const Gecode::FloatVal &d, Gecode::FloatNum st)
Create and register test.
virtual void post(Gecode::Space &home, Gecode::FloatVarArray &x)
Post constraint on x.
Test for cosinus constraint
CosXY(const std::string &s, const Gecode::FloatVal &d, Gecode::FloatNum st)
Create and register test.
virtual void post(Gecode::Space &home, Gecode::FloatVarArray &x)
Post constraint on x.
virtual MaybeType solution(const Assignment &x) const
Test whether x is solution
Test for sinus constraint with shared variables
virtual void post(Gecode::Space &home, Gecode::FloatVarArray &x)
Post constraint on x.
virtual MaybeType solution(const Assignment &x) const
Test whether x is solution
SinXX(TestTags tags, const std::string &s, const Gecode::FloatVal &d, Gecode::FloatNum st)
Create and register test.
Test for sinus constraint where solution is ensured
virtual MaybeType solution(const Assignment &x) const
Test whether x is solution
virtual void post(Gecode::Space &home, Gecode::FloatVarArray &x)
Post constraint on x.
SinXYSol(const std::string &s, const Gecode::FloatVal &d, Gecode::FloatNum st)
Create and register test.
virtual bool extendAssignment(Assignment &x) const
Extend assignment x.
Test for sinus constraint
virtual MaybeType solution(const Assignment &x) const
Test whether x is solution
virtual void post(Gecode::Space &home, Gecode::FloatVarArray &x)
Post constraint on x.
SinXY(const std::string &s, const Gecode::FloatVal &d, Gecode::FloatNum st)
Create and register test.
Test for tangent constraint with shared variables
TanXX(TestTags tags, const std::string &s, const Gecode::FloatVal &d, Gecode::FloatNum st)
Create and register test.
virtual void post(Gecode::Space &home, Gecode::FloatVarArray &x)
Post constraint on x.
virtual MaybeType solution(const Assignment &x) const
Test whether x is solution
Test for tangent constraint where solution is ensured
TanXYSol(const std::string &s, const Gecode::FloatVal &d, Gecode::FloatNum st)
Create and register test.
virtual bool extendAssignment(Assignment &x) const
Extend assignment x.
virtual MaybeType solution(const Assignment &x) const
Test whether x is solution
virtual void post(Gecode::Space &home, Gecode::FloatVarArray &x)
Post constraint on x.
Test for tangent constraint
virtual MaybeType solution(const Assignment &x) const
Test whether x is solution
virtual void post(Gecode::Space &home, Gecode::FloatVarArray &x)
Post constraint on x.
TanXY(const std::string &s, const Gecode::FloatVal &d, Gecode::FloatNum st)
Create and register test.
Set of test tags.
Definition test.hh:105
static TestTags sweep(void)
Expensive parameter sweeps.
Definition test.hpp:59
static TestTags standard(void)
Standard suite without expensive sweeps.
Definition test.hpp:55
void rel(Home home, FloatVar x0, FloatRelType frt, FloatVar x1)
Post propagator for .
Definition rel.cpp:68
double FloatNum
Floating point number base type.
Definition float.hh:106
bool subset(const FloatVal &x, const FloatVal &y)
Definition val.hpp:491
void sin(Home home, FloatVar x0, FloatVar x1)
Post propagator for .
void cos(Home home, FloatVar x0, FloatVar x1)
Post propagator for .
void acos(Home home, FloatVar x0, FloatVar x1)
Post propagator for .
void atan(Home home, FloatVar x0, FloatVar x1)
Post propagator for .
void asin(Home home, FloatVar x0, FloatVar x1)
Post propagator for .
void tan(Home home, FloatVar x0, FloatVar x1)
Post propagator for .
Tests for trigonometric constraints
CosXX cos_xx_b(TestTags::sweep(),"B", b, step)
ACosXYSol acos_xy_sol_c("C", c, step)
CosXYSol cos_xy_sol_a("A", a, step)
SinXX sin_xx_c(TestTags::sweep(),"C", c, step)
ASinXX asin_xx_c(TestTags::sweep(),"C", c, step)
CosXX cos_xx_c(TestTags::sweep(),"C", c, step)
CosXY cos_xy_a("A", a, step)
ACosXX acos_xx_b(TestTags::sweep(),"B", b, step)
CosXYSol cos_xy_sol_b("B", b, step)
ACosXX acos_xx_a(TestTags::standard(),"A", a, step)
ATanXYSol atan_xy_sol_b("B", b, step)
TanXYSol tan_xy_sol_b("B", b, step)
TanXX tan_xx_a(TestTags::standard(),"A", a, step)
Gecode::FloatVal c(-8, 8)
ACosXY acos_xy_c("C", c, step)
ATanXX atan_xx_b(TestTags::sweep(),"B", b, step)
SinXYSol sin_xy_sol_c("C", c, step)
ASinXX asin_xx_b(TestTags::sweep(),"B", b, step)
TanXY tan_xy_a("A", a, step)
SinXY sin_xy_c("C", c, step)
TanXX tan_xx_c(TestTags::sweep(),"C", c, step)
ATanXY atan_xy_c("C", c, step)
SinXY sin_xy_a("A", a, step)
CosXX cos_xx_a(TestTags::standard(),"A", a, step)
TanXYSol tan_xy_sol_a("A", a, step)
TanXYSol tan_xy_sol_c("C", c, step)
ATanXYSol atan_xy_sol_c("C", c, step)
SinXYSol sin_xy_sol_b("B", b, step)
CosXYSol cos_xy_sol_c("C", c, step)
CosXY cos_xy_b("B", b, step)
Gecode::FloatVal a(-8, 5)
ACosXYSol acos_xy_sol_b("B", b, step)
SinXY sin_xy_b("B", b, step)
ATanXY atan_xy_b("B", b, step)
ATanXX atan_xx_a(TestTags::standard(),"A", a, step)
ASinXYSol asin_xy_sol_a("A", a, step)
ACosXY acos_xy_a("A", a, step)
ATanXYSol atan_xy_sol_a("A", a, step)
TanXY tan_xy_c("C", c, step)
ACosXYSol acos_xy_sol_a("A", a, step)
SinXX sin_xx_a(TestTags::standard(),"A", a, step)
TanXY tan_xy_b("B", b, step)
ASinXY asin_xy_c("C", c, step)
const Gecode::FloatNum step
ATanXX atan_xx_c(TestTags::sweep(),"C", c, step)
ACosXY acos_xy_b("B", b, step)
TanXX tan_xx_b(TestTags::sweep(),"B", b, step)
ASinXYSol asin_xy_sol_b("B", b, step)
Gecode::FloatVal b(9, 12)
SinXYSol sin_xy_sol_a("A", a, step)
ASinXY asin_xy_b("B", b, step)
SinXX sin_xx_b(TestTags::sweep(),"B", b, step)
ASinXX asin_xx_a(TestTags::standard(),"A", a, step)
ASinXYSol asin_xy_sol_c("C", c, step)
CosXY cos_xy_c("C", c, step)
ACosXX acos_xx_c(TestTags::sweep(),"C", c, step)
ASinXY asin_xy_a("A", a, step)
ATanXY atan_xy_a("A", a, step)
Testing domain floats.
Definition float.cpp:43
@ EXTEND_ASSIGNMENT
Definition float.hh:78
@ CPLT_ASSIGNMENT
Definition float.hh:76
MaybeType
Type for comparisons and solutions.
Definition float.hh:65
General test support.
Definition afc.cpp:41
@ sweep
Really heavy sweep tests.
Definition test.hh:101