Sentence:  The great resemblance between electrical and magnetic attractions and repulsions and the similarity of their laws <WSD>necessarily</WSD> would bring about this comparison . 
Meaning of the word marked with <WSD> tags:  in such a manner as could not be otherwise