コンプトン端の計算

  1. #include<stdio.h>
  2.  
  3. double Egamma, Edge;
  4.  
  5. main(){
  6. printf("This program calculates the energy of Compton edge from energy of gamma ray.\n");
  7. printf("Enter the energy of gamma ray (keV):");
  8. scanf("%lf",&Egamma);
  9.  
  10. Edge = Egamma / (1.0+(1.0/(2.0*(Egamma / 511.0))));
  11.  
  12. printf("Then the energy of Compton edge is %lf keV\n", Edge);
  13.  
  14. }

タグ:

+ タグ編集
  • タグ:

このサイトはreCAPTCHAによって保護されており、Googleの プライバシーポリシー利用規約 が適用されます。

最終更新:2011年05月06日 19:37