NCBI C++ ToolKit
njn_doubletype.hpp
Go to the documentation of this file.

Go to the SVN repository for this file.

1 #ifndef ALGO_BLAST_GUMBEL_PARAMS__INCLUDED_NJN_DOUBLETYPE
2 #define ALGO_BLAST_GUMBEL_PARAMS__INCLUDED_NJN_DOUBLETYPE
3 
4 /* $Id: njn_doubletype.hpp 44808 2010-02-18 16:10:58Z boratyng $
5 * ===========================================================================
6 *
7 * PUBLIC DOMAIN NOTICE
8 * National Center for Biotechnology Information
9 *
10 * This software/database is a "United States Government Work" under the
11 * terms of the United States Copyright Act. It was written as part of
12 * the author's offical duties as a United States Government employee and
13 * thus cannot be copyrighted. This software/database is freely available
14 * to the public for use. The National Library of Medicine and the U.S.
15 * Government have not placed any restriction on its use or reproduction.
16 *
17 * Although all reasonable efforts have been taken to ensure the accuracy
18 * and reliability of the software and data, the NLM and the U.S.
19 * Government do not and cannot warrant the performance or results that
20 * may be obtained by using this software or data. The NLM and the U.S.
21 * Government disclaim all warranties, express or implied, including
22 * warranties of performance, merchantability or fitness for any particular
23 * purpose.
24 *
25 * Please cite the author in any work or product based on this material.
26 *
27 * ===========================================================================*/
28 
29 /*****************************************************************************
30 
31 File name: njn_doubletype.hpp
32 
33 Author: John Spouge
34 
35 Contents:
36 
37 ******************************************************************************/
38 
39 #include <corelib/ncbistl.hpp>
40 
41 
43 BEGIN_SCOPE(blast)
44 
45 BEGIN_SCOPE(Njn)
46 BEGIN_SCOPE(DoubleType)
47 
48  // Constants
49 
50  const double ROOT_2 = 1.4142135623730951e+000; // square root of 2.0
51  const double ROOT_10 = 3.1622776601683795e+000; // square root of 10.0
52 
53  const double PI = 3.1415926535897931e+000; // pi = ratio circumference to diameter
54  const double ROOT_PI = 1.7724538509055159e+000; // square root of pi
55  const double ROOT_2_PI = 2.5066282746310002e+000; // square root of 2.0 * pi
56 
57  const double E = 2.7182818284590451e+000; // base of natural logarithms
58  const double LN_2 = 6.9314718055994529e-001; // natural log of 2.0
59  const double LN_10 = 2.3025850929940459e+000; // natural log of 10.0
60  const double LN_LN_2 = -3.6651292058166435e-001; // log of log of 2.0
61 
62  const double EULER = 0.5772156649015325e+000; // Euler's constant gamma
63 
64 END_SCOPE(DoubleType)
65 END_SCOPE(Njn)
66 
67 
68 END_SCOPE(blast)
70 
71 #endif //! ALGO_BLAST_GUMBEL_PARAMS__INCLUDED_NJN_DOUBLETYPE
#define END_NCBI_SCOPE
End previously defined NCBI scope.
Definition: ncbistl.hpp:103
#define END_SCOPE(ns)
End the previously defined scope.
Definition: ncbistl.hpp:75
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
Definition: ncbistl.hpp:100
#define BEGIN_SCOPE(ns)
Define a new scope.
Definition: ncbistl.hpp:72
The NCBI C++/STL use hints.
const double EULER
const double LN_2
const double ROOT_10
const double LN_LN_2
const double ROOT_2_PI
const double LN_10
const double PI
const double E
const double ROOT_2
const double ROOT_PI
#define const
Definition: zconf.h:232
Modified on Fri Sep 20 14:57:56 2024 by modify_doxy.py rev. 669887