~ubuntu-branches/ubuntu/oneiric/mpqc/oneiric

« back to all changes in this revision

Viewing changes to src/lib/chemistry/qc/intv3/comp1e.cc

  • Committer: Bazaar Package Importer
  • Author(s): Michael Banck
  • Date: 2005-11-27 11:41:49 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20051127114149-zgz9r3gk50w8ww2q
Tags: 2.3.0-1
* New upstream release.
* debian/rules (SONAME): Activate awk snippet for automatic so-name
  detection again, resulting in a bump to `7' and making a `c2a' for
  the C++ allocator change unnecessary; closes: #339232.
* debian/patches/00list (08_gcc-4.0_fixes): Removed, no longer needed.
* debian/rules (test): Remove workarounds, do not abort build if tests
  fail.
* debian/ref: Removed.
* debian/control.in (libsc): Added Conflict against libsc6c2.

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
#include <math.h>
30
30
 
31
31
#include <util/misc/formio.h>
 
32
#include <util/misc/math.h>
32
33
#include <chemistry/qc/intv3/macros.h>
33
34
#include <chemistry/qc/intv3/fjt.h>
34
35
#include <chemistry/qc/intv3/utils.h>
242
243
        AmB = A[xyz] - B[xyz];
243
244
        AmB2 += AmB*AmB;
244
245
        }
245
 
      ss =   pow(3.141592653589793/(exp1+exp2),1.5)
 
246
      ss =   pow(M_PI/(exp1+exp2),1.5)
246
247
           * exp(- oozeta * exp1 * exp2 * AmB2);
247
248
      tmp     =  gshell1->coefficient_unnorm(gc1,i)
248
249
               * gshell2->coefficient_unnorm(gc2,j)
282
283
    AmB = A[xyz] - B[xyz];
283
284
    AmB2 += AmB*AmB;
284
285
    }
285
 
  ss =   pow(3.141592653589793/(gshell1->exponent(prim1)
 
286
  ss =   pow(M_PI/(gshell1->exponent(prim1)
286
287
                                +gshell2->exponent(prim2)),1.5)
287
288
       * exp(- oozeta * gshell1->exponent(prim1)
288
289
             * gshell2->exponent(prim2) * AmB2);
741
742
        AmB2 += AmB*AmB;
742
743
        }
743
744
      /* The s integral kinetic energy. */
744
 
      ss =   pow(3.141592653589793/(gshell1->exponent(i)
 
745
      ss =   pow(M_PI/(gshell1->exponent(i)
745
746
                                    +gshell2->exponent(j)),1.5)
746
747
           * exp(- xi * AmB2);
747
748
      sTs =  ss
1653
1654
        }
1654
1655
 
1655
1656
      /* The auxillary integral coeficients. */
1656
 
      auxcoef =   2.0 * 3.141592653589793/(gshell1->exponent(i)
 
1657
      auxcoef =   2.0 * M_PI/(gshell1->exponent(i)
1657
1658
                                           +gshell2->exponent(j))
1658
1659
           * exp(- oozeta * gshell1->exponent(i)
1659
1660
                 * gshell2->exponent(j) * AmB2);
1731
1732
        }
1732
1733
 
1733
1734
      /* The auxillary integral coeficients. */
1734
 
      auxcoef =   2.0 * 3.141592653589793/(gshell1->exponent(i)
 
1735
      auxcoef =   2.0 * M_PI/(gshell1->exponent(i)
1735
1736
                                           +gshell2->exponent(j))
1736
1737
           * exp(- oozeta * gshell1->exponent(i)
1737
1738
                 * gshell2->exponent(j) * AmB2);
2122
2123
        }
2123
2124
 
2124
2125
      /* The auxillary integral coeficients. */
2125
 
      auxcoef =   2.0 * 3.141592653589793/(gshell1->exponent(i)
 
2126
      auxcoef =   2.0 * M_PI/(gshell1->exponent(i)
2126
2127
                                           +gshell2->exponent(j))
2127
2128
           * exp(- oozeta * gshell1->exponent(i)
2128
2129
                 * gshell2->exponent(j) * AmB2);
2190
2191
        }
2191
2192
 
2192
2193
      /* The auxillary integral coeficients. */
2193
 
      auxcoef =   2.0 * 3.141592653589793/(gshell1->exponent(i)
 
2194
      auxcoef =   2.0 * M_PI/(gshell1->exponent(i)
2194
2195
                                           +gshell2->exponent(j))
2195
2196
           * exp(- oozeta * gshell1->exponent(i)
2196
2197
                 * gshell2->exponent(j) * AmB2);
2692
2693
        AmB = A[xyz] - B[xyz];
2693
2694
        AmB2 += AmB*AmB;
2694
2695
        }
2695
 
      ss =   pow(3.141592653589793/(exp1+exp2),1.5)
 
2696
      ss =   pow(M_PI/(exp1+exp2),1.5)
2696
2697
           * exp(- oozeta * exp1 * exp2 * AmB2);
2697
2698
      for (mu=0; mu<3; mu++) sMus[mu] = ss * PmC[mu];
2698
2699
      tmp     =  gshell1->coefficient_unnorm(gc1,i)