please help with this error : Operator '^' cannot be applied to operands of type 'double' and 'int'
<p>i have the following C# code.</p>

<pre><code>double a = 0;
 double d = 0;
double er = 0;
int N = numbers.Length;
a=(N*N/6) + N
d=(N-(N/2))*2



     for(int aa=1;aa&lt;=data.length;aa++)
        {

              er=((10-aa)*(-a\) + d - (numbers[aa,12]))^2;

          }
</code></pre>

<p>numbers is a double array with this format :</p>

<pre><code>1 0.3232 0.361 0.5214 0.233 -0.7678
2 0.3451 0.321 0.134 0.224 -0.706268
3 0.3123 0.351 0.155 0.523 -0.70626
4 0.36 0.312 0.216 0.233 -0.6453351
5 0.269 0.3331 0.162 0.224 -0.584962
</code></pre>

<p>but when running the code , i got this error on this line:</p>

<pre><code> er=((10-aa)*(-a\) + d - (numbers[aa,12]))^2;
</code></pre>

<p>any help would be appreciated.</p>
