By placing one end of the bar magnetized by the solenoid near the
compass contained by the cabinet (Fig. 7) it will be seen that one end
of the compass needle is attracted. When the opposite end of the bar
is presented to the same end of the needle, that end of the needle
will be repelled and the opposite one attracted, showing that like
poles repel each other while unlike poles attract.
[Illustration: FIG. 7.--MAGNETIC EXPERIMENT.]