Differences From Artifact [a82d5274ea]:
- Executable file
mttroot/mtt/cc/include/useful-functions.hh
— part of check-in
[b36bb9b4a5]
at
2003-09-14 23:05:47
on branch origin/master
— Made pi a constant recognised by MTT for -cc and -oct.
Required by NonlinearMSD example.
Will cause problems for models which declare pi as a parameter. (user: geraint@users.sourceforge.net, size: 1943) [annotate] [blame] [check-ins using] [more...]
To Artifact [e59a66354c]:
- Executable file mttroot/mtt/cc/include/useful-functions.hh — part of check-in [c85b3640cd] at 2004-01-26 18:48:25 on branch origin/master — <cmath> must be explicitly included for mex (matlab compiler script) to recognise std::pow. (user: geraint@users.sourceforge.net, size: 1960) [annotate] [blame] [check-ins using] [more...]
︙ | ︙ | |||
15 16 17 18 19 20 21 22 23 24 25 26 27 28 | #define cast_to_double (double) /* typedef unsigned int bool; const bool true = 1; const bool false = 0; */ #else #define cast_to_double static_cast<double> using std::pow; #endif /* ! __cplusplus */ static double pi = M_PI; static double Pi = M_PI; | > | 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | #define cast_to_double (double) /* typedef unsigned int bool; const bool true = 1; const bool false = 0; */ #else #include <cmath> #define cast_to_double static_cast<double> using std::pow; #endif /* ! __cplusplus */ static double pi = M_PI; static double Pi = M_PI; |
︙ | ︙ |