Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

tests.cpp File Reference

#include "emdata.h"
#include <iostream>

Include dependency graph for tests.cpp:

Include dependency graph

Go to the source code of this file.

Functions

int main (int argc, char **argv)


Function Documentation

int main int  argc,
char **  argv
 

Definition at line 37 of file tests.cpp.

References x, and y.

00037                                 {
00038 float x,y,w,z,s1,s2,ss;
00039 ss=0.f;
00040 for (int k=0; k<200; k++) {
00041 s1=0.f;s2=0.f;
00042 for (int j=0; j<30000; j++) {
00043 x=1.002f;y=1.002;w=1.002;z=1.002;
00044   for (int i=0; i<1000; i++) { x=x*z*1.001f;y=y*w*1.02f;}
00045 //cout <<"   " << x <<"   "<<y <<"   "<< w <<"   "<<z << endl;
00046 //cout << "   "<<j<<"   "<<"  x  " << x <<endl;
00047 s1+=x+y;
00048 s2=z+w;
00049 }
00050 ss=ss+s1+s2;
00051 }
00052 cout <<"   " << x <<"   "<<y <<"   "<< w <<"   "<<z <<"   "<<ss << endl;
00053 }


Generated on Tue Jun 11 13:47:27 2013 for EMAN2 by  doxygen 1.3.9.1