Changeset 8774 in ntrip for trunk/BNC/src


Ignore:
Timestamp:
Jun 7, 2019, 10:23:21 AM (5 years ago)
Author:
stuerze
Message:

minor changes in factorial method

Location:
trunk/BNC/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/bncutils.cpp

    r8692 r8774  
    464464//
    465465////////////////////////////////////////////////////////////////////////////
    466 int factorial(int n) {
     466double factorial(int n) {
    467467  if (n == 0) {
    468468    return 1;
  • trunk/BNC/src/pppModel.cpp

    r8619 r8774  
    554554    for (int m = 0; m <= min(n, M); m++) {
    555555      double pnm = associatedLegendreFunction(n, m, sin(_phiPP));
    556       double a = double(factorial(n - m));
    557       double b = double(factorial(n + m));
     556      double a = factorial(n - m);
     557      double b = factorial(n + m);
    558558      if (m == 0) {
    559559        fac = sqrt(2.0 * n + 1);
     
    570570
    571571  if (vtec < 0.0) {
    572     return 0.0;
     572    vtec = 0.0;
    573573  }
    574574
Note: See TracChangeset for help on using the changeset viewer.