source:
Sophya/trunk/SophyaProg/Tests/sphg0.cc@
526
Last change on this file since 526 was 526, checked in by , 26 years ago | |
---|---|
File size: 393 bytes |
Rev | Line | |
---|---|---|
[491] | 1 | #include <iostream.h> |
[526] | 2 | #include "sambainit.h" |
[491] | 3 | #include "spheregorski.h" |
4 | ||
5 | ||
6 | int main() | |
7 | { | |
8 | double teta,phi; | |
[526] | 9 | PeidaInit(); |
[491] | 10 | int m=32; |
11 | SphereGorski<double> sph(m); | |
12 | for (int j=0;j<sph.NbPixels();j++) | |
13 | { | |
14 | sph.PixThetaPhi(j,teta,phi); | |
15 | sph(j)= 0.2* cos(3.*teta)*sin(8*phi); | |
16 | } | |
17 | // Projection dans une image | |
18 | ||
19 | cout << " ===== Fin de test0 ======== " << endl; | |
20 | return 0; | |
21 | } |
Note:
See TracBrowser
for help on using the repository browser.