This is the code for our TCOM paper titled "Millimeter Wave Communications With RIS performance analysis and optimization".
The derived performance expressions, including H-functions, can be computed using Mathematica.
The code for the Monte Carlo simulation is given in Matlab.
The Python code provides a high-precision approximation method to calculate the H function [R1].
[R1] H. R. Alhennawi, M. M. El Ayadi, M. H. Ismail, and H.-A. M. Mourad, “Closed-form exact and asymptotic expressions for the symbol error rate and capacity of the h-function fading channel,” IEEE Trans. Veh. Technol., vol. 65, no. 4, pp. 1957–1974, Apr. 2015.