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

testc.cpp

Go to the documentation of this file.
00001 /*
00002  * Author: Steven Ludtke, 04/10/2003 (sludtke@bcm.edu)
00003  * Copyright (c) 2000-2006 Baylor College of Medicine
00004  *
00005  * This software is issued under a joint BSD/GNU license. You may use the
00006  * source code in this file under either license. However, note that the
00007  * complete EMAN2 and SPARX software packages have some GPL dependencies,
00008  * so you are responsible for compliance with the licenses of these packages
00009  * if you opt to use BSD licensing. The warranty disclaimer below holds
00010  * in either instance.
00011  *
00012  * This complete copyright notice must be included in any revised version of the
00013  * source code. Additional authorship citations may be added, but existing
00014  * author citations must be preserved.
00015  *
00016  * This program is free software; you can redistribute it and/or modify
00017  * it under the terms of the GNU General Public License as published by
00018  * the Free Software Foundation; either version 2 of the License, or
00019  * (at your option) any later version.
00020  *
00021  * This program is distributed in the hope that it will be useful,
00022  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00023  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00024  * GNU General Public License for more details.
00025  *
00026  * You should have received a copy of the GNU General Public License
00027  * along with this program; if not, write to the Free Software
00028  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00029  *
00030  */
00031 
00032 #include "emdata.h"
00033 #include <iostream>
00034 
00035 using namespace EMAN;
00036 using namespace std;
00037 int main(int argc, char** argv) {
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 }
00054  

Generated on Tue Jun 11 13:46:19 2013 for EMAN2 by  doxygen 1.3.9.1