- #1
EngWiPy
- 1,368
- 61
Hi,
I have the following code:
what is the error in this code?
Thanks in advance
I have the following code:
Code:
For[SNRdB = 0, SNRdB <= 30, SNRdB = SNRdB + 1,
SNR = 10^(SNRdB/10);
y = FindRoot[
ExpIntegralE[0, x/SNR] - ExpIntegralE[1, x/SNR] == SNR, {x, 0.5}];
R = N[1/SNR*NIntegrate[Log[2, q/y]*Exp[-q/SNR], {q, y, Infinity}]]]
what is the error in this code?
Thanks in advance