Below is a simple example of the code I am trying to implement (using it as proof of concept). I am trying to make an array (d) with 5 functions/equations and incrementing w