In my numerical calculations I have a list of Eigenvalues with some of them equal to zero. So, when I calculate the log
to the base 2
I get infinity
those eigenvalues due to Log[2,0]
output.
Question: How can I avoid Log[2,0]
in my lengthy code, i.e. to get 0
instead of -Infinity
?
Thanks and regards
Comments
Post a Comment