18 #include <gsUniversal/gsUniversal.h>
29 namespace constant_universal
31 static const double e = 2.71828182845904523536028747135266249775724709369996;
32 static const double pi = 3.14159265358979323846264338327950288419716939937510;
33 static const double pi_2 = 1.57079632679489661923132169163975144209858469968755;
34 static const double pi_4 = 0.78539816339744830961566084581987572104929234984378;
35 static const double pi_180 = 0.01745329251994329576923690768488612713442871888542;
36 static const double _1_pi = 0.31830988618379067153776752674502872406891929148091;
37 static const double _2_pi = 0.63661977236758134307553505349005744813783858296183;
38 static const double _180_pi = 57.29577951308232087679815481410517033240547246656443;
39 static const double log2 = 0.69314718055994530941723212145817656807550013436026;
40 static const double sqrt2 = 1.41421356237309504880168872420969807856967187537695;
46 #define UNIVERSAL_TYPE posit_256_5
50 #define UNIVERSAL_TYPE posit_128_4
54 #define UNIVERSAL_TYPE posit_64_3
58 #define UNIVERSAL_TYPE posit_32_2
62 #define UNIVERSAL_TYPE posit_16_1
66 #define UNIVERSAL_TYPE posit_8_1
70 #define UNIVERSAL_TYPE posit_8_0
74 #define UNIVERSAL_TYPE posit_4_0
78 #define UNIVERSAL_TYPE posit_3_1
82 #define UNIVERSAL_TYPE posit_3_0
86 #define UNIVERSAL_TYPE posit_2_0
Provides an exprtk adaptor for the Unum Posit arithmetic type.
Provides an exprtk adaptor for the Unum Posit arithmetic type.