Changeset 1903 for trunk/psLib/src/math/psPolynomial.c
- Timestamp:
- Sep 25, 2004, 1:05:07 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/math/psPolynomial.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/math/psPolynomial.c
r1861 r1903 7 7 * polynomials. It also contains a Gaussian functions. 8 8 * 9 * @version $Revision: 1.4 0$ $Name: not supported by cvs2svn $10 * @date $Date: 2004-09-2 3 06:12:22$9 * @version $Revision: 1.41 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2004-09-25 23:05:07 $ 11 11 * 12 12 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 1699 1699 all j>=i). This routine does a binary disection of the vector and returns 1700 1700 "i" such that (v[i] <= x <= v[i+1). If x lies outside the range of v[], 1701 then this routine prints a warning message and returns -1.1701 then this routine prints a warning message and returns (-2 or -1). 1702 1702 1703 1703 XXX: Macro this for a few different types. … … 1716 1716 "---- Calling p_psVectorBinDisectF32(%f)\n", x); 1717 1717 1718 if ((x < bins[0]) || 1719 (x > bins[numBins-1])) { 1718 if (x < bins[0]) { 1719 psLogMsg(__func__, PS_LOG_WARN, 1720 "p_psVectorBinDisectF32(): ordinate %f is outside vector range (%f - %f).", 1721 x, bins[0], bins[numBins-1]); 1722 return(-2); 1723 } 1724 1725 if (x > bins[numBins-1]) { 1720 1726 psLogMsg(__func__, PS_LOG_WARN, 1721 1727 "p_psVectorBinDisectF32(): ordinate %f is outside vector range (%f - %f).",
Note:
See TracChangeset
for help on using the changeset viewer.
