Changeset 3060 for trunk/test_more/romberg_one.cpp
 Timestamp:
 Dec 27, 2013 3:38:57 PM (6 years ago)
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

trunk/test_more/romberg_one.cpp
r2506 r3060 1 1 /* $Id$ */ 2 2 /*  3 CppAD: C++ Algorithmic Differentiation: Copyright (C) 20031 2Bradley M. Bell3 CppAD: C++ Algorithmic Differentiation: Copyright (C) 200313 Bradley M. Bell 4 4 5 5 CppAD is distributed under multiple licenses. This distribution is under … … 46 46 Float operator () (const Float &x) 47 47 { size_t i; 48 Float f = 1;48 Float f(1); 49 49 for(i = 0; i < degree; i++) 50 50 f *= x; … … 62 62 63 63 // arguments to RombergOne 64 Float a = 0.;65 Float b = 1.;64 Float a(0); 65 Float b(1); 66 66 Float r; 67 67 size_t n = 4; … … 71 71 // int_a^b F(x) dx = 72 72 // [ b^(degree+1)  a^(degree+1) ] / (degree+1) 73 Float bpow = 1.;74 Float apow = 1.;73 Float bpow(1); 74 Float apow(1); 75 75 for(i = 0; i <= degree; i++) 76 76 { bpow *= b; … … 84 84 step *= Float(2.); 85 85 // step size raised to a power 86 Float spow = Float(1 .);86 Float spow = Float(1); 87 87 88 88 for(p = 0; p < n; p++)
Note: See TracChangeset
for help on using the changeset viewer.