@louiscad Not sure what you are looking to achieve. Turning mathematical equations into something programming-friendly is never easy. You might want to get familiar with matrices, vectors, etc as that is typically the easiest way to express mathematical functions (at least linear ones) programmatically.