PPT Slide
4. Next write the code for calculating the Compton scattered energy distribution. This means the “Comcalc” entity
To do this we need to be specific about the method names and arguments. This has been defined for you in:
ComptonAnalysis/comcalc.h
Write the implementation code (I.e. the comcalc.c file) to match the method declarations given in this file.
Test it out by writing a simple test program which uses Comcalc to create new Datum(s) for a range of angles. You can then print these out using the dump() method of Datum
At this point you can either continue with the code you have written if you are happy with it, or use a working solution supplied in:
ComptonAnalysis/comcalc.c