Here is a copy of the OK WTI Spot Price FOB Dollars per Barr
Here is a copy of the “OK WTI Spot Price FOB (Dollars per Barrel)”.
JUST PART \"B\"
Oct 01, 2015
44.75
Oct 02, 2015
45.54
Oct 05, 2015
46.28
Oct 06, 2015
48.53
Oct 07, 2015
47.86
Oct 08, 2015
49.46
Oct 09, 2015
49.67
Oct 12, 2015
47.09
Oct 13, 2015
46.7
Oct 14, 2015
46.63
Oct 15, 2015
46.38
Oct 16, 2015
47.3
Oct 19, 2015
45.91
Oct 20, 2015
45.84
Oct 21, 2015
45.22
Oct 22, 2015
44.9
Oct 23, 2015
43.91
Oct 26, 2015
43.19
Oct 27, 2015
43.21
Oct 28, 2015
45.93
Oct 29, 2015
46.02
Oct 30, 2015
46.6
Nov 02, 2015
46.12
Nov 03, 2015
47.88
Nov 04, 2015
46.32
Nov 05, 2015
45.27
Nov 06, 2015
44.32
Nov 09, 2015
43.87
Nov 10, 2015
44.23
Nov 11, 2015
42.95
Nov 12, 2015
41.74
Nov 13, 2015
40.69
Nov 16, 2015
41.68
Nov 17, 2015
40.73
Nov 18, 2015
40.75
Nov 19, 2015
40.55
Nov 20, 2015
39.39
Nov 23, 2015
39.27
Nov 24, 2015
40.89
Nov 25, 2015
41.22
Nov 27, 2015
40.57
Nov 30, 2015
40.43
Dec 01, 2015
40.58
Dec 02, 2015
39.93
Dec 03, 2015
41.08
Dec 04, 2015
40
Dec 07, 2015
37.64
Dec 08, 2015
37.46
Dec 09, 2015
37.16
Dec 10, 2015
36.76
Dec 11, 2015
35.65
Dec 14, 2015
36.31
Dec 15, 2015
37.32
Dec 16, 2015
35.55
Dec 17, 2015
34.98
Dec 18, 2015
34.72
Dec 21, 2015
34.55
Dec 22, 2015
36.12
Dec 23, 2015
36.76
Dec 24, 2015
37.62
Dec 28, 2015
36.36
Dec 29, 2015
37.88
Dec 30, 2015
36.59
Dec 31, 2015
37.13
Write a C program dose the following
Use the function following
double sum_o(double *x, double *y, int n, int j, int k)
{
int i;
double sum=0.0;
for (i=0;i<n;i++) sum=sum+pow(x[i],j)*pow(y[i],k);
return sum;
Find the least square fit equations for linear and quadratic regression. (by using the sum_o(); otherwise, no grade )
|
|
|
Solution
What these FPGAs do have, rather than FPUs, is hardwired DSP/multiplier squares, equipped for actualizing a 18*18 or (Virtex-5) 18*25 duplication in a solitary cycle. Furthermore, the bigger gadgets have around a thousand of these, or even 126 or 180 at the top end of the Spartan-3 or Spartan-6 families.
So you can decay a huge augmentation into littler operations utilizing a few of these (2 for the Virtex-5 doing single exactness) utilizing the DSP\'s adders or FPGA texture to whole the fractional items.
You will get a reply in a couple cycles - 3 or 4 for SP, possibly 5 for DP - relying upon how you form the viper tree (and some of the time, where the synth apparatuses demand including pipeline registers!).
However that is the dormancy - as it is pipelined, throughput will be 1 result for each clock cycle.
For division, I approximated a proportional administrator utilizing a query table took after by quadratic interjection. This was exact to superior to anything single-exactness and would stretch out (with more equipment) to DP on the off chance that I needed. In Spartan-6 it takes 2 BlockRams and 4 DSP/multipliers, and several hundred LUT/FF sets.
Its inertness is 8 cycles, however again the throughput is single-cycle, so by joining it with the above multiplier, you get one division for every clock cycle. It ought to surpass 100MHz in Spartan-3. In Spartan-6 the amalgamation gauge is 185MHz yet that is with 1.6ns on a solitary directing way, so 200MHz is inside reason.
In Virtex-5 it achieved 200MHz without exertion, as did its square root twin. I had two or three summer understudies endeavor to re-pipeline it - with under 12 cycles dormancy they drew near to 400MHz - 2.5 ns for a square root.
Be that as it may, recall that you have perhaps a hundred to a thousand DSP units? That gives you maybe a couple requests of extent more preparing force than a solitary FP unit.





