Comp # | Period (day) | Cos factor (m) | Sin factor (m) |
---|---|---|---|
0 | 0.00000 | 5.32893E-1 | 0E+0 |
1 | 0.12877 | 2.17541E-4 | -6.53747E-5 |
2 | 0.12886 | -5.00193E-5 | 1.69789E-5 |
3 | 0.12938 | -1.53106E-4 | 1.65882E-4 |
4 | 0.14707 | -6.6995E-5 | 7.3327E-5 |
5 | 0.16841 | -1.91379E-4 | -8.78162E-5 |
6 | 0.16857 | 1.79174E-4 | 1.34807E-5 |
7 | 0.17036 | -6.68145E-6 | 3.75404E-4 |
8 | 0.17052 | -3.31826E-4 | -9.68176E-4 |
9 | 0.17251 | -1.28726E-3 | -4.55252E-4 |
10 | 0.17470 | 1.32681E-4 | 1.60471E-4 |
11 | 0.19989 | 5.685E-4 | 1.02684E-4 |
12 | 0.20545 | -3.6991E-4 | -4.75173E-5 |
13 | 0.24966 | -7.7451E-5 | 7.20264E-4 |
14 | 0.25000 | 4.03727E-4 | 5.48397E-4 |
15 | 0.25395 | -1.16475E-4 | -2.3814E-4 |
16 | 0.25431 | -8.06796E-4 | 2.69019E-4 |
17 | 0.25631 | -1.71426E-4 | 1.28657E-4 |
18 | 0.25667 | 2.34515E-4 | 3.62201E-4 |
19 | 0.25876 | 2.00384E-3 | -2.39443E-3 |
20 | 0.26122 | -1.63015E-3 | 2.44051E-4 |
21 | 0.33303 | 1.66385E-3 | 1.54909E-3 |
22 | 0.34071 | -1.29293E-4 | 8.63173E-5 |
23 | 0.34135 | -2.07234E-4 | -1.59373E-4 |
24 | 0.34502 | -1.95771E-3 | 3.88758E-3 |
25 | 0.34943 | 5.17676E-4 | 6.43759E-4 |
26 | 0.48977 | 9.5862E-4 | 3.90363E-4 |
27 | 0.49109 | -4.34653E-5 | -8.15816E-4 |
28 | 0.49863 | 1.13038E-2 | -9.7903E-3 |
29 | 0.49932 | 6.94447E-4 | 3.9633E-4 |
30 | 0.50000 | -5.72302E-2 | 1.50479E-2 |
31 | 0.50798 | 4.02881E-3 | 3.53429E-3 |
32 | 0.50924 | 2.49441E-3 | 5.51447E-5 |
33 | 0.51606 | -1.84369E-3 | -1.87452E-4 |
34 | 0.51679 | 1.90145E-3 | 3.65911E-3 |
35 | 0.51753 | -2.15588E-1 | 3.08149E-1 |
36 | 0.51826 | -3.11537E-4 | -4.59634E-3 |
37 | 0.52608 | -1.54721E-2 | 1.49739E-2 |
38 | 0.52743 | 9.8103E-2 | 4.06118E-2 |
39 | 0.53632 | 1.59234E-2 | 9.7939E-3 |
40 | 0.53772 | 2.06963E-3 | -1.65808E-2 |
41 | 0.54697 | 2.0838E-3 | -4.4055E-3 |
42 | 0.54843 | -2.68694E-3 | -2.79453E-4 |
43 | 0.89909 | 7.46368E-6 | -2.42894E-4 |
44 | 0.92942 | 1.07523E-3 | -4.83336E-4 |
45 | 0.93417 | 2.89655E-4 | 1.31277E-3 |
46 | 0.96244 | -1.48182E-3 | 4.5E-4 |
47 | 0.96696 | 3.47972E-4 | 5.33834E-4 |
48 | 0.99185 | 2.45657E-5 | -3.82115E-5 |
49 | 0.99455 | 3.74423E-4 | 4.53809E-5 |
50 | 0.99727 | 9.44485E-3 | 4.07767E-2 |
51 | 1.00000 | 1.57796E-3 | 2.89986E-3 |
52 | 1.00275 | 1.76119E-3 | 1.18026E-2 |
53 | 1.00551 | -8.53101E-4 | 8.12821E-4 |
54 | 1.02954 | 6.08003E-4 | 9.03758E-4 |
55 | 1.03472 | 1.41931E-3 | -1.24005E-3 |
56 | 1.04061 | -1.6851E-4 | -1.1824E-4 |
57 | 1.06951 | -5.23693E-4 | 4.24418E-4 |
58 | 1.07581 | 2.63841E-2 | 9.03342E-3 |
59 | 1.11346 | 9.64308E-4 | -7.43768E-5 |
60 | 1.11951 | 1.05738E-3 | -5.00025E-3 |
61 | 1.16035 | -1.16402E-4 | -1.23147E-4 |
62 | 1.16693 | -8.64327E-4 | -2.95391E-5 |
63 | 1.21136 | 8.21436E-4 | 7.43677E-4 |
64 | 13.66079 | 1.45068E-3 | -8.30634E-3 |
65 | 14.76529 | -6.14903E-4 | 5.81335E-3 |
66 | 27.55455 | 1.01893E-2 | 1.11536E-3 |
67 | 31.81193 | -1.13915E-2 | 9.10074E-3 |
68 | 182.62118 | -1.03542E-2 | -1.78435E-2 |
69 | 365.25998 | -1.24335E-2 | 1.07059E-2 |
Function EstimateTideValues() As [Function]
Dim Pi As [Double] = Math.PI
Dim sum As [Double] = harmonics(0, 1)
For k As Int16 = 1 To harmonics.GetUpperBound(0)
Dim period As [Double] = 2 * Pi / harmonics(k, 0)
Dim coefCos As [Double] = harmonics(k, 1)
Dim coefSin As [Double] = harmonics(k, 2)
sum = sum + coefCos * Math.Cos(time * period)
sum = sum + coefSin * Math.Sin(time * period)
Next
Return sum
End Function
double EstimateTideValues()
{
double Pi = Math.PI;
double sum = harmonics[0, 1];
for (int k=1; k <= harmonics.GetUpperBound(0); k++)
{
double period = 2 * Pi / harmonics[k, 0];
double coefCos = harmonics[k, 1];
double coefSin = harmonics[k, 2];
sum += coefCos * Math.Cos(time * period);
sum += coefSin * Math.Sin(time * period);
}
return sum;
}