I used this machine for cooking.<br/>I used this machine in cooking.<br/>I used this machine while cooking.<br/>I used this machine to cook.<br/><br/>Are these similar in meaning?<br/>I'd like to know the exact meaning of each of those sentences.<br/>Could you help me to clarify?