I have an equation
(0.125-(1j*(mu1)*0.125))/(0.125 - cmath.sqrt((0.125**2)-(0.125**2)-((mu1**2)*(0.125**2))))
This is suppose to be 1 for any value of mu1 but it seems I am getting 1 only if mu1 is real... what am I missing?
For mu1 = 1, the above expression calculates 1 (see 3rd line)
(0.125-(1j*(mu1)*0.125))/(0.125 - cmath.sqrt((0.125**2)-(0.125**2)-((mu1**2)*(0.125**2))))
(1+0j)
For mu1 = 2, the above expression calculates 1 (see 3rd line)
(0.125-(1j*(mu1)*0.125))/(0.125 - cmath.sqrt((0.125**2)-(0.125**2)-((mu1**2)*(0.125**2))))
(1-0j) ANSWER I AM LOOKING FOR
For mu1 = 2+2j, the above expression calculates
(0.125-(1j*(mu1)*0.125))/(0.125 - cmath.sqrt((0.125**2)-(0.125**2)-((mu1**2)*(0.125**2))))
(-1.4-0.8j) I WAS EXPECTING 1 because NUMERATOR and DENOMINATOR are same
For the last one, the bottom half evaluates to
1 1
-- - sqrt(j^2 (2+2j)^2 ---^2 )
8 8
1 1
-- - j (2+2j) ---
8 8
1 -2j -2j^2
-----------
8
3 - 2j
------
8