title: I keep getting this error: invalid operands to binary ^ (have 'double' and 'double')
body: <p>Whenever I run the code my lines 52 and 61 keep giving me the same error message.</p>
  
  <pre><code>#include&lt;stdio.h&gt;
  #include&lt;math.h&gt;
  
  double getinput(void);
  double calcwindchillold(double v, double t);
  double calcwindchillnew(double v, double t);
  void printResults(double windchillold, double windchillnew);
  
  int main(void)
  {
      double v = 0;
      double t = 0;
      double windchillold = 0;
      double windchillnew = 0;
  
      v = getinput();
      t = getinput();
      windchillold = calcwindchillold(v,t);
      windchillnew = calcwindchillnew(v,t);
      return 0;
  }
  double getinput(void)
  {
      double v,t;
      printf("Input the wind speed in MPH: ");
      scanf("%lf", &amp;v);
      printf("Input the temperature in degrees Fahrenheit: ");
      scanf("%lf", &amp;t);
  
  
      return v,t;
  
  }
  
  double calcwindchillold(double v, double t)
  {
      double windchillold;
  
      windchillold = ((0.3 * v^0.5) + 0.474 - (0.02 * v) * (t - 91.4) + 91.4);
  // in the line above this is the error.
  
      return windchillold;
  }
  
  double calcwindchillnew(double v, double t)
  {
      double windchillnew;
  
      windchillnew = 35.74 + 0.6215*t - 35.75*(v^0.16) + 0.4275 * t * v^0.16;
  // in the line above this is the second error.
  
      return windchillnew;
  }
  
  void printResults(double windchillold, double windchillnew)
  {
      printf("The wind chill using the old formula is: %lf F\n", windchillold);
      printf("The wind chill using the new formula is: %lf F\n", windchillnew);
  }
  </code></pre>
  
  <p>This has the debug system say:
  error: invalid operands to binary ^ (have 'double' and 'double')</p>
  
  <p>looked at other scripts that were also getting the 'double' errors and couldn't use that information to help my own.</p>
  
  <p>I know its probably some simple thing that I looked over.</p>