First of all, thank you very much for your replying.
Actually, i have known how to calculate the normalized spin density difference. But this value can be both positive and negative, I want to change the negative part to be positive (The absolute value of the spin density difference). I have try the command abs, it does bot work because the spin density difference is a function rather than a number. Can you help me on this?