Changeset 1082 in Sophya for trunk/SophyaProg/Tests
- Timestamp:
- Jul 24, 2000, 2:51:50 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaProg/Tests/tnt.cc
r768 r1082 96 96 dvl.SetD("DV1-0.2", 0.2); 97 97 dvl.SetD("DV2-4.5", 4.5); 98 dvl.SetZ("ZV", complex<r_8>(2.0,-1.44)); 98 99 99 100 dvl.SetI("IVV3-783", 783); … … 113 114 float f = dvl("DVV3"); 114 115 int i = dvl("IVV3-783"); 116 complex<r_8> z = dvl("ZV"); 115 117 116 118 printf("\n \n Essai1 (IVV3 DVV3 DV2= ) %d %.20g %g \n", i, f, (float)d); 119 printf("\n \n Essai ZV= (%.2g %g I) \n", z.real(), z.imag()); 117 120 cout << "Test Comment/IntegerValue: " << dvl.GetComment("IntegerValue") << endl; 118 121 cout << "Test Comment/DVV3: " << dvl.GetComment("DVV3") << endl; … … 135 138 double df1 = (double)( dvlr["DVV3"] ); 136 139 double df2 = (double)3.141592652141592652 - df1; 137 cout << " Test Precision : Pi-Pi= " << df 1<< "DVV3= " << df1 << endl;140 cout << " Test Precision : Pi-Pi= " << df2 << "DVV3= " << df1 << endl; 138 141 139 142 cout << dvlr;
Note:
See TracChangeset
for help on using the changeset viewer.