I have written a simple function. It takes two inputs, only when two inputs are equal the output should be zero.
elseif (E>1.5) && (E<=4) && (E ~= Eg)
Now the function works as expected most of times,but when the value of Eg is 1.38,1.39,1.4, 2.84 or 2.6 the code doesnot gives I=0 even when the value of Eg is equal to E. Example:
I tried changing the if conditions, changing their positions. No change.