Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- power = 0;
- double *Y_vector = new double[s];
- for (int i = 0; i < s; i++)
- {
- Y_vector[i] = 0;
- for (int j = 0; j < n; j++) //http://funkyimg.com/i/WGoZ.png
- {
- Y_vector[i] += powf(function_values[j].x, power)*function_values[j].y;
- }
- power++;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement