Changeset 2640 in Sophya
- Timestamp:
- Dec 2, 2004, 5:37:51 PM (21 years ago)
- Location:
- trunk/SophyaLib/Samba
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/Samba/harmspher.cc
r2635 r2640 39 39 ---------------------------------------------------------------- 40 40 */ 41 42 double HarmSph_array(int lmax,int m,double x,double *xlm)43 {44 if(x>1.) x=1.; else if(x<-1.) x=-1.;45 return HarmSph_array_teta(lmax,m,acos(x),xlm);46 }47 41 48 42 double HarmSph_array_teta(int lmax,int m,double teta,double *xlm) -
trunk/SophyaLib/Samba/harmspher.h
r2633 r2640 2 2 #define HARMSPHER_SEEN 3 3 4 double HarmSph_array(int lmax,int m,double x,double *xlm);5 4 double HarmSph_array_teta(int lmax,int m,double teta,double *xlm); 6 5 6 inline double HarmSph_array(int lmax,int m,double x,double *xlm) 7 { 8 if(x>1.) x=1.; else if(x<-1.) x=-1.; 9 return HarmSph_array_teta(lmax,m,acos(x),xlm); 10 } 11 7 12 #endif
Note:
See TracChangeset
for help on using the changeset viewer.