Relationship between motion of magnet and current produced