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

step/stepcore

  • sources
  • kde-4.12
  • kdeedu
  • step
  • stepcore
constants.cc
Go to the documentation of this file.
1 /* This file is part of StepCore library.
2  Copyright (C) 2007 Vladimir Kuznetsov <ks.vladimir@gmail.com>
3 
4  StepCore library is free software; you can redistribute it and/or modify
5  it under the terms of the GNU General Public License as published by
6  the Free Software Foundation; either version 2 of the License, or
7  (at your option) any later version.
8 
9  StepCore library is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  GNU General Public License for more details.
13 
14  You should have received a copy of the GNU General Public License
15  along with StepCore; if not, write to the Free Software
16  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17 */
18 
19 #include "constants.h"
20 
21 #include <math.h>
22 #include <float.h>
23 
24 namespace StepCore {
25 
26 #ifndef M_PI
27 const double Constants::Pi = 3.1415926535897932385;
28 #else
29 const double Constants::Pi = M_PI;
30 #endif
31 
32 const double Constants::SpeedOfLight = 2.99792458e8;
33 const double Constants::Magnetic = 1.2566e-6;
34 const double Constants::Electric = 8.8542e-12;
35 
36 // XXX: is CoulombError correct ?
37 const double Constants::Coulomb = 8.987551787e9;
38 const double Constants::CoulombError = 8.987551787e9 * 1e-5;
39 
40 const double Constants::Gravitational = 6.67428e-11;
41 const double Constants::GravitationalError = 6.67428e-11 * 1e-4;
42 
43 const double Constants::Planck = 6.62606896e-34;
44 const double Constants::PlanckError = 6.62606896e-34 * 5e-8;
45 
46 const double Constants::Boltzmann = 1.3806504e-23;
47 const double Constants::BoltzmannError = 1.3806504e-23 * 1.8e-6;
48 
49 const double Constants::WeightAccel = 9.80665;
50 const double Constants::WeightAccelError = 0.00001;
51 
52 } // namespace StepCore
53 
StepCore::Constants::CoulombError
static const double CoulombError
Error of Coulomb's constant.
Definition: constants.h:48
StepCore::Constants::Boltzmann
static const double Boltzmann
Boltzmann's constant [J/K].
Definition: constants.h:61
constants.h
Constants class.
StepCore::Constants::PlanckError
static const double PlanckError
Error of Planck's constant.
Definition: constants.h:58
StepCore::Constants::GravitationalError
static const double GravitationalError
Error of newtonian constant of gravitation.
Definition: constants.h:53
StepCore::Constants::Planck
static const double Planck
Planck's constant [J*s].
Definition: constants.h:56
StepCore::Constants::SpeedOfLight
static const double SpeedOfLight
Speed of light in vacuum [m/s].
Definition: constants.h:39
StepCore::Constants::Electric
static const double Electric
Electric constant (permittivity of free space) [F/m].
Definition: constants.h:41
StepCore::Constants::Gravitational
static const double Gravitational
Newtonian constant of gravitation [N*m^2/kg^2].
Definition: constants.h:51
StepCore::Constants::Coulomb
static const double Coulomb
Coulomb's constant [N*m^2/C^2].
Definition: constants.h:46
StepCore::Constants::WeightAccelError
static const double WeightAccelError
Error of standard acceleration of gravity (free fall on Earth)
Definition: constants.h:68
StepCore::Constants::Magnetic
static const double Magnetic
Magnetic constant (permeability of free space) [N/A^2].
Definition: constants.h:43
StepCore::Constants::WeightAccel
static const double WeightAccel
Standard acceleration of gravity (free fall on Earth) [m/s^2].
Definition: constants.h:66
StepCore::Constants::Pi
static const double Pi
Pi constant.
Definition: constants.h:36
StepCore::Constants::BoltzmannError
static const double BoltzmannError
Error of Boltzmann's constant.
Definition: constants.h:63
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:43:06 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

step/stepcore

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

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal