Is it possible to put decimal values in a matrix? I tried creating a double matrix and I'm not getting what I want.

For example

It's just not working at all and I don't seem to be making any headway. Turning them into ints loses data, and normalizing it (these are vectors) will just give me (0,0,0) everywhere. What am I supposed to do?Code:double A[1][3]; A[0][0] = 2 *(x + x1); A[0][1] = 2 *(y + y1); A[0][2] = sqrt(r^2 - (x + x1)^2 - (y + y1)^2);