~vbursian/research-assistant/intervers

« back to all changes in this revision

Viewing changes to RANet/General.cpp

  • Committer: Viktor Bursian
  • Date: 2013-06-06 15:10:08 UTC
  • Revision ID: vbursian@gmail.com-20130606151008-6641eh62f0lgx8jt
Tags: version_0.3.0
versionĀ 0.3.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
////////////////////////////////////////////////////////////////////////////////
 
2
/*! @file General.cpp   General definitions.
 
3
- Part of RANet - Research Assistant Net Library (based on ANSI C++).
 
4
- Copyright(C) 1994-2011, Viktor E. Bursian, St.Petersburg, Russia.
 
5
                     Viktor.Bursian@mail.ioffe.ru
 
6
*///////////////////////////////////////////////////////////////////////////////
 
7
#include "General.h"
 
8
namespace RA {
 
9
//------------------------------------------------------------------------------
 
10
 
 
11
const real                    real_inf = std::numeric_limits<real>::infinity();
 
12
const real                    real_nan = std::numeric_limits<real>::quiet_NaN();
 
13
real const                    ln10 = log(real(10.0));
 
14
 
 
15
//! @todo{PhysValues} optimize
 
16
real  power10 (int P)
 
17
{
 
18
  return power10(real(P));
 
19
};
 
20
 
 
21
//! @todo{PhysValues} optimize
 
22
real  power10 (integer P)
 
23
{
 
24
  return power10(real(P));
 
25
};
 
26
 
 
27
//------------------------------------------------------------------------------
 
28
}; //namespace RA