Good day,
I have the output A and I want to do some operation to A:
A = {0, 1, 2} B = -Total[(#*Log2[#]& /@ A] when i run, has error :
Indeterminate expression 0 (-\[Infinity]) encountered. >> How can I edit the coding, if I want to use
If output A=0, the value of #*Log2[#]=0 Please help me to fix this problem.
Thank you very much