Index: trunk/psLib/src/math/psPolynomial.c
===================================================================
--- trunk/psLib/src/math/psPolynomial.c	(revision 1846)
+++ trunk/psLib/src/math/psPolynomial.c	(revision 1859)
@@ -7,6 +7,6 @@
  *  polynomials.  It also contains a Gaussian functions.
  *
- *  @version $Revision: 1.38 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2004-09-22 01:30:21 $
+ *  @version $Revision: 1.39 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2004-09-23 04:56:40 $
  *
  *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -467,4 +467,6 @@
     for (loop_x = 0; loop_x < myPoly->n; loop_x++) {
         if (myPoly->mask[loop_x] == 0) {
+            psTrace(".psLib.dataManip.psFunctions.p_psOrdPolynomial1DEval", 10,
+                    "polysum+= sum*coeff [%f+= (%f * %f)\n", polySum, xSum, myPoly->coeff[loop_x]);
             polySum += xSum * myPoly->coeff[loop_x];
             xSum *= x;
@@ -1687,5 +1689,5 @@
 
 /*****************************************************************************
-VectorBinDisectF32(): This is a private function which takes as input a
+p_psVectorBinDisectF32(): This is a private function which takes as input a
 vector of floating point data as well as a single floating point values.
 The input vector values are assumed to be non-decreasing (v[i-1] <= v[j] for
@@ -1696,7 +1698,7 @@
 XXX: Macro this for a few different types.
  *****************************************************************************/
-int VectorBinDisectF32(float *bins,
-                       int numBins,
-                       float x)
+int p_psVectorBinDisectF32(float *bins,
+                           int numBins,
+                           float x)
 {
     int min;
@@ -1704,11 +1706,11 @@
     int mid;
 
-    psTrace(".psLib.dataManip.psFunctions.VectorBinDisectF32", 4,
-            "---- Calling VectorBinDisectF32(%f)\n", x);
+    psTrace(".psLib.dataManip.psFunctions.p_psVectorBinDisectF32", 4,
+            "---- Calling p_psVectorBinDisectF32(%f)\n", x);
 
     if ((x < bins[0]) ||
             (x > bins[numBins-1])) {
         psLogMsg(__func__, PS_LOG_WARN,
-                 "VectorBinDisectF32(): ordinate %f is outside vector range (%f - %f).",
+                 "p_psVectorBinDisectF32(): ordinate %f is outside vector range (%f - %f).",
                  x, bins[0], bins[numBins-1]);
         return(-1);
@@ -1720,11 +1722,11 @@
 
     while (min != max) {
-        psTrace(".psLib.dataManip.psFunctions.VectorBinDisectF32", 4,
+        psTrace(".psLib.dataManip.psFunctions.p_psVectorBinDisectF32", 4,
                 "(min, mid, max) is (%d, %d, %d): (x, bins) is (%f, %f)\n",
                 min, mid, max, x, bins[mid]);
 
         if (x == bins[mid]) {
-            psTrace(".psLib.dataManip.psFunctions.VectorBinDisectF32", 4,
-                    "---- Exiting VectorBinDisectF32(): bin %d\n", mid);
+            psTrace(".psLib.dataManip.psFunctions.p_psVectorBinDisectF32", 4,
+                    "---- Exiting p_psVectorBinDisectF32(): bin %d\n", mid);
             return(mid);
         } else if (x < bins[mid]) {
@@ -1736,15 +1738,15 @@
     }
 
-    psTrace(".psLib.dataManip.psFunctions.VectorBinDisectF32", 4,
-            "---- Exiting VectorBinDisectF32(): bin %d\n", min);
+    psTrace(".psLib.dataManip.psFunctions.p_psVectorBinDisectF32", 4,
+            "---- Exiting p_psVectorBinDisectF32(): bin %d\n", min);
     return(min);
 }
 
 /*****************************************************************************
-VectorBinDisectS32(): integer version of above.
+p_psVectorBinDisectS32(): integer version of above.
  *****************************************************************************/
-int VectorBinDisectS32(int *bins,
-                       int numBins,
-                       int x)
+int p_psVectorBinDisectS32(int *bins,
+                           int numBins,
+                           int x)
 {
     int min;
@@ -1752,11 +1754,11 @@
     int mid;
 
-    psTrace(".psLib.dataManip.psFunctions.VectorBinDisectS32", 4,
-            "---- Calling VectorBinDisectS32(%f)\n", x);
+    psTrace(".psLib.dataManip.psFunctions.p_psVectorBinDisectS32", 4,
+            "---- Calling p_psVectorBinDisectS32(%f)\n", x);
 
     if ((x < bins[0]) ||
             (x > bins[numBins-1])) {
         psLogMsg(__func__, PS_LOG_WARN,
-                 "VectorBinDisectS32(): ordinate %f is outside vector range (%f - %f).",
+                 "p_psVectorBinDisectS32(): ordinate %f is outside vector range (%f - %f).",
                  x, bins[0], bins[numBins-1]);
         return(-1);
@@ -1768,11 +1770,11 @@
 
     while (min != max) {
-        psTrace(".psLib.dataManip.psFunctions.VectorBinDisectS32", 4,
+        psTrace(".psLib.dataManip.psFunctions.p_psVectorBinDisectS32", 4,
                 "(min, mid, max) is (%d, %d, %d): (x, bins) is (%f, %f)\n",
                 min, mid, max, x, bins[mid]);
 
         if (x == bins[mid]) {
-            psTrace(".psLib.dataManip.psFunctions.VectorBinDisectS32", 4,
-                    "---- Exiting VectorBinDisectS32(): bin %d\n", min);
+            psTrace(".psLib.dataManip.psFunctions.p_psVectorBinDisectS32", 4,
+                    "---- Exiting p_psVectorBinDisectS32(): bin %d\n", min);
             return(min);
         } else if (x < bins[mid]) {
@@ -1784,11 +1786,11 @@
     }
 
-    psTrace(".psLib.dataManip.psFunctions.VectorBinDisectS32", 4,
-            "---- Exiting VectorBinDisectS32(): bin %d\n", min);
+    psTrace(".psLib.dataManip.psFunctions.p_psVectorBinDisectS32", 4,
+            "---- Exiting p_psVectorBinDisectS32(): bin %d\n", min);
     return(min);
 }
 
 /*****************************************************************************
-p_psVectorBinDisect(): A wrapper to the above VectorBinDisect().
+p_psVectorBinDisect(): A wrapper to the above p_psVectorBinDisect().
  *****************************************************************************/
 int p_psVectorBinDisect(psVector *bins,
@@ -1801,7 +1803,7 @@
 
     if (x->type.type == PS_TYPE_S32) {
-        return(VectorBinDisectS32(bins->data.S32, bins->n, x->data.S32));
+        return(p_psVectorBinDisectS32(bins->data.S32, bins->n, x->data.S32));
     } else if (x->type.type == PS_TYPE_F32) {
-        return(VectorBinDisectF32(bins->data.F32, bins->n, x->data.F32));
+        return(p_psVectorBinDisectF32(bins->data.F32, bins->n, x->data.F32));
     } else {
         // XXX: Generate error message.
@@ -1879,5 +1881,5 @@
             "---- p_ps1DInterpolateF32() begin ----\n");
 
-    binNum = VectorBinDisectF32(domain, n, x);
+    binNum = p_psVectorBinDisectF32(domain, n, x);
 
     if (0 == numIntPoints%2) {
@@ -1953,5 +1955,5 @@
 
     n = spline->n;
-    binNum = VectorBinDisectF32(spline->domains, (spline->n)+1, x);
+    binNum = p_psVectorBinDisectF32(spline->domains, (spline->n)+1, x);
     if (binNum == -1) {
         psLogMsg(__func__, PS_LOG_WARN,
