source: branches/Couenne/Couenne/src/expression/CouennePrecisions.h @ 558

Last change on this file since 558 was 558, checked in by pbelotti, 12 years ago

fixed bug in setting branching point

File size: 684 bytes
Line 
1/*
2 * Name:    CouennePrecisions.h
3 * Author:  Pietro Belotti
4 * Purpose: constants for evaluation procedures
5 *
6 * (C) Pietro Belotti. This file is licensed under the Common Public License (CPL)
7 */
8
9#ifndef COUENNE_PRECISIONS_H
10#define COUENNE_PRECISIONS_H
11
12#include <math.h>
13
14/* keep it at least 1e-7, or strange things happen */
15#define COUENNE_EPS           1e-7
16#define COUENNE_EPS_CHK       1e-7
17#define COUENNE_EPS_SET       1e-15
18
19#define COUENNE_EPS_SIMPL     1e-20
20
21#define COUENNE_INFINITY      1.0e+50
22#define COUENNE_INFINITY_CHK  1.0e+40
23#define COUENNE_INFINITY_SET  1.0e+60
24
25#define COU_MAX_COEFF     1e8
26
27#define COUENNE_round(x) ((int) (floor ((x) + 0.5)))
28
29#endif
Note: See TracBrowser for help on using the repository browser.