Write a main program which calls this subprogram and


Program to Generate Breit-Wigner-Distributed Random Numbers

Write a subprogram with the following specifications:

CALL: CALL RNBW(A,GAMMA,R,N)

INPUT ARGUMENTS: A - expectation value a

GAMMA - full width at half maximum (FWHM)

N - number n of generated random numbers

OUTPUT ARGUMENT: R - n-dimensional vector of random numbers following a Breit-Wigner distribution characterized by a and

Write a main program which calls this subprogram and displays the generated numbers numerically or. optionally. graphically as a histogram (Fig. 4.8).

Fig. 4.8

2082_cdd605bc-718a-44ca-a32f-20ae2d80c7c0.png

Request for Solution File

Ask an Expert for Answer!!
Physics: Write a main program which calls this subprogram and
Reference No:- TGS01464013

Expected delivery within 24 Hours