• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • kdeedu
  • Sitemap
  • Contact Us
 

step/stepcore

constants.cc

Go to the documentation of this file.
00001 /* This file is part of StepCore library.
00002    Copyright (C) 2007 Vladimir Kuznetsov <ks.vladimir@gmail.com>
00003 
00004    StepCore library is free software; you can redistribute it and/or modify
00005    it under the terms of the GNU General Public License as published by
00006    the Free Software Foundation; either version 2 of the License, or
00007    (at your option) any later version.
00008 
00009    StepCore library is distributed in the hope that it will be useful,
00010    but WITHOUT ANY WARRANTY; without even the implied warranty of
00011    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012    GNU General Public License for more details.
00013 
00014    You should have received a copy of the GNU General Public License
00015    along with StepCore; if not, write to the Free Software
00016    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
00017 */
00018 
00019 #include "constants.h"
00020 
00021 #include <math.h>
00022 #include <float.h>
00023 
00024 namespace StepCore {
00025 
00026 #ifndef M_PI
00027 const double Constants::Pi = 3.1415926535897932385;
00028 #else
00029 const double Constants::Pi = M_PI;
00030 #endif
00031 
00032 const double Constants::SpeedOfLight = 2.99792458e8;
00033 const double Constants::Magnetic = 1.2566e-6;
00034 const double Constants::Electric = 8.8542e-12;
00035 
00036 // XXX: is CoulombError correct ?
00037 const double Constants::Coulomb = 8.987551787e9;
00038 const double Constants::CoulombError = 8.987551787e9 * 1e-5;
00039 
00040 const double Constants::Gravitational = 6.67428e-11;
00041 const double Constants::GravitationalError = 6.67428e-11 * 1e-4;
00042 
00043 const double Constants::Planck = 6.62606896e-34;
00044 const double Constants::PlanckError = 6.62606896e-34 * 5e-8;
00045 
00046 const double Constants::Boltzmann = 1.3806504e-23;
00047 const double Constants::BoltzmannError = 1.3806504e-23 * 1.8e-6;
00048 
00049 const double Constants::WeightAccel = 9.80665;
00050 const double Constants::WeightAccelError = 0.00001;
00051 
00052 } // namespace StepCore
00053 

step/stepcore

Skip menu "step/stepcore"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdeedu

Skip menu "kdeedu"
  • kalzium
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  •   docs
  •   src
  • parley
  •   stepcore
Generated for kdeedu by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal