If MathJax were available, the author of this question might have been able to describe what the code was trying to accomplish:
- Improve performance of math function applied to arraysImprove performance of math function applied to arrays
Also, if a reviewer chooses to overhaul the code, it would also be helpful to write an explanation using MathJax.