00001 #include <iostream> 00002 00003 double fastfractal_doubledip( int dim , double* x ); 00004 00005 int main(int argc, char *argv[]) 00006 { 00007 int dim=1000; 00008 double x[1000]; 00009 for (int i = 0; i < dim; i++) 00010 x[i]=0.12323; 00011 00012 double f = 5; 00013 f=fastfractal_doubledip( dim , x ); 00014 std::cout << "f@0=" << f << std::endl; 00015 f=fastfractal_doubledip( dim , x ); 00016 x[1]=0.3; 00017 std::cout << "f@0=" << f << std::endl; 00018 f=fastfractal_doubledip( dim , x ); 00019 std::cout << "f@0=" << f << std::endl; 00020 f=fastfractal_doubledip( dim , x ); 00021 std::cout << "f@0=" << f << std::endl; 00022 x[1]=0.5; 00023 f=fastfractal_doubledip( dim , x ); 00024 std::cout << "f@0=" << f << std::endl; 00025 f=fastfractal_doubledip( dim , x ); 00026 std::cout << "f@0=" << f << std::endl; 00027 00028 return 0; 00029 } 00030