Bridge++  Ver. 1.2.x
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
evalexpr_global.h
Go to the documentation of this file.
1 
13 #ifndef EVALEXPR_GLOBAL_INCLUDED
14 #define EVALEXPR_GLOBAL_INCLUDED
15 
16 #include <cmath>
17 
18 // global symbol definitions.
19 namespace {
20  const _init_function arithmetic_functions[] =
21  {
22  { "cos", cos, },
23  { "sin", sin, },
24  { "tan", tan, },
25  { "atan", atan, },
26  { "log", log, },
27  { "exp", exp, },
28  { "sqrt", sqrt, },
29  { 0, 0, }, // sentinel
30  };
31 
32  const _init_variable predefined_constants[] =
33  {
34  { "pi", atan(1.0) * 4, },
35  { 0, 0, }, // sentinel
36  };
37 }
38 #endif