Changeset 7184 for code/trunk/src/libraries/util/ExprParser.cc
- Timestamp:
- Aug 18, 2010, 9:46:16 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/libraries/util/ExprParser.cc
r6417 r7184 33 33 34 34 #include "ExprParser.h" 35 35 36 #include <cmath> 36 37 #include <cstring> 37 38 #include <cstdlib> 39 #include "Math.h" 38 40 39 41 // macros for easier if, else statements … … 50 52 { 51 53 this->failed_ = false; 52 this->variables_["pi"] = 3.1415926535897932;53 this->variables_["e"] = 2.7182818284590452;54 this->variables_["pi"] = math::pi_d; 55 this->variables_["e"] = math::e_d; 54 56 } 55 57 … … 328 330 value = sqrt(parse_last_argument()); 329 331 CASE("degrees") 330 value = parse_last_argument()*180/ 3.1415926535897932;332 value = parse_last_argument()*180/math::pi_d; 331 333 CASE("radians") 332 value = parse_last_argument()* 3.1415926535897932/180;334 value = parse_last_argument()*math::pi_d/180; 333 335 CASE("mod") 334 336 {
Note: See TracChangeset
for help on using the changeset viewer.