Which object? More information is needed to answer this question
<span>The potential of electrons in a circuit can be increased by the action of a battery.
</span><span>♡♡Hope I helped!!! :)♡♡
</span>
Classically, gravitational attraction is due to the masses of objects. It is inversely proportional to the square of the distances between the objects.
Magnetic attraction is due to the magnetism in objects which is due to uncompensated electron spins in certain atoms. The force due to magnetism less easy to put into one equation than gravity since magnetic fields can have different shapes, but the simplest one (the dipolar field) is inversely proportional to the cube of the distance between the magnetic dipoles.
You would get a wrong calculaton which if you are doing an experiment it can mess with the results