|
From: Matthias S. <mat...@us...> - 2007-03-29 22:57:45
|
Update of /cvsroot/boost-sandbox/boost-sandbox/libs/units/example In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv27720/example Modified Files: unit_example_10.cpp Log Message: minor fix Index: unit_example_10.cpp =================================================================== RCS file: /cvsroot/boost-sandbox/boost-sandbox/libs/units/example/unit_example_10.cpp,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- unit_example_10.cpp 29 Mar 2007 22:41:06 -0000 1.2 +++ unit_example_10.cpp 29 Mar 2007 22:57:45 -0000 1.3 @@ -71,6 +71,7 @@ #include <boost/units/systems/trig.hpp> #include <boost/units/systems/conversions/convert_degrees_to_radians.hpp> +#include <boost/units/systems/conversions/convert_gradians_to_radians.hpp> int main(void) { @@ -84,10 +85,6 @@ quantity<angle::radian> thetar((3.1415926/6.0)*radians); //] - cos(thetad); - - //quantity<angle::dimensionless_degree> cos_thetad(cos(thetad)); - /* /// test cos { quantity<angle::dimensionless_degree> cos_thetad(cos(thetad)); @@ -144,7 +141,7 @@ << "std::atan(tan(thetar)) = " << std::atan(tan_thetar) << std::endl << std::endl; } - */ + sstream2 << "thetad = 30 deg" << std::endl; sstream2 << "thetag = 33.3333 grad" << std::endl; sstream2 << "thetar = 0.523599 rad" << std::endl; |