The relation between the discharge capacity and cycling number of mechanically alloyed MgxNi100−x amorphous electrode alloys