Advertisement
Pagoniusz

Untitled

May 10th, 2015
207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.26 KB | None | 0 0
  1. power = 0;
  2.     double *Y_vector = new double[s];
  3.     for (int i = 0; i < s; i++)
  4.     {
  5.         Y_vector[i] = 0;
  6.         for (int j = 0; j < n; j++) //http://funkyimg.com/i/WGoZ.png
  7.         {
  8.             Y_vector[i] += powf(function_values[j].x, power)*function_values[j].y;
  9.         }
  10.         power++;
  11.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement