#include<stdio.h>
double Egamma, Edge;
main(){
printf("This program calculates the energy of Compton edge from energy of gamma ray.\n"); printf("Enter the energy of gamma ray (keV):");
Edge = Egamma / (1.0+(1.0/(2.0*(Egamma / 511.0))));
printf("Then the energy of Compton edge is %lf keV\n", Edge
);
}
最終更新:2011年05月06日 19:37