Changeset 6204 for trunk/psLib/test/math/tst_psFunc08.c
- Timestamp:
- Jan 26, 2006, 11:10:22 AM (20 years ago)
- File:
-
- 1 edited
-
trunk/psLib/test/math/tst_psFunc08.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/test/math/tst_psFunc08.c
r5092 r6204 4 4 * ORD and CHEB type polynomials. 5 5 * 6 * @version $Revision: 1. 5$ $Name: not supported by cvs2svn $7 * @date $Date: 200 5-09-22 20:45:43$6 * @version $Revision: 1.6 $ $Name: not supported by cvs2svn $ 7 * @date $Date: 2006-01-26 21:10:22 $ 8 8 * 9 9 * XXX: Probably should test single- and multi-dimensional polynomials in … … 62 62 63 63 // Allocate polynomial structure 64 psPolynomial1D* polyOrd = psPolynomial1DAlloc( TERMS-1, PS_POLYNOMIAL_ORD);65 psPolynomial1D* polyCheb = psPolynomial1DAlloc( TERMS-1, PS_POLYNOMIAL_CHEB);64 psPolynomial1D* polyOrd = psPolynomial1DAlloc(PS_POLYNOMIAL_ORD, TERMS-1); 65 psPolynomial1D* polyCheb = psPolynomial1DAlloc(PS_POLYNOMIAL_CHEB, TERMS-1); 66 66 // Set polynomial members 67 67 for(psS32 i = 0; i < TERMS; i++) { … … 90 90 91 91 // Allocate polynomial with invalid type 92 polyOrd = psPolynomial1DAlloc( TERMS-1, 99);92 polyOrd = psPolynomial1DAlloc(99, TERMS-1); 93 93 // Attempt to evaluation invalid polynomial type 94 94 psLogMsg(__func__,PS_LOG_INFO,"Following should generate error message invalid type"); … … 107 107 { 108 108 // Allocate polynomial 109 psPolynomial1D* polyOrd = psPolynomial1DAlloc( TERMS-1,PS_POLYNOMIAL_ORD);110 psPolynomial1D* polyCheb = psPolynomial1DAlloc( TERMS-1,PS_POLYNOMIAL_CHEB);109 psPolynomial1D* polyOrd = psPolynomial1DAlloc(PS_POLYNOMIAL_ORD, TERMS-1); 110 psPolynomial1D* polyCheb = psPolynomial1DAlloc(PS_POLYNOMIAL_CHEB, TERMS-1); 111 111 112 112 // Set polynomial members
Note:
See TracChangeset
for help on using the changeset viewer.
