hokhani
- 556
- 17
In the program below, the result of "difr" is not zero but according to the definition of qx in the second line, I expect it to be zero (because qx^2+ky^2=(\frac{ef-u}{hbarv_f})^2). What is the problem?
Code:
ef=1;hbarv_f=658;ky=0.0011;u=2.5;
qx=sqrt(((ef-u)/hbarv_f)^2-ky.^2);
difr=(ef-u)/hbarv_f-sqrt(qx^2+ky^2)