There's anyway to define functions inside an array in C? I don't want to create all those functions because it will polute my code and there's no need for this. I was thinking something like this:
double (q[1])(X[2])={(double X[2]){return X[0]}};
but it seems not right way to do that.
I will be clear, i have alot of derivatives, but i now their formula and it will be used in few places in my code, so, if i create a function to each derivative would make my code unreadble, the best solution would be create them inside a vector, and call them as a array of functions.