something like this
__kernel void my_kernel(__global int *x,__global int *y,__global int *z,__global int *c1, __global int *c2, __global int *f)
{
int i = get_global_id(0);
int j = get_global_id(1);
int w = get_gloval_size(0);
f[i*w+j] = x * cos(y + z) / (c1 + c2);
}
just look for some tutorials on OpenCL.