In the attached code it won't let me pass the double array to the function. I am not sure how to fix it, I have tried to make a pointer and pass that as an argument but that didn't work either.

I have tried numerous way I can think of trying to pass it as an argument but it simply doesn't like the arrays.

There are 2 other errors in the code but knowing me it is something simple I am overlooking.