Should I use a function in a situation where it would be called an extreme number of times?
<p>I have a section of my program that contains a large amount of math with some rather long equations. Its long and unsightly and I wish to replace it with a function. However, chunk of code is used an extreme number of times in my code and also requires a lot of variables to be initialized. </p>

<p>If I'm worried about speed, is the cost of calling the function and initializing the variables negligible here or should i stick to directly coding it in each time?</p>

<p>Thanks, </p>

<p>-Faken</p>
