Comp # | Period (day) | Cos factor (m) | Sin factor (m) |
---|---|---|---|
0 | 0.00000 | 5.35109E-1 | 0E+0 |
1 | 0.12877 | 2.4127E-4 | -6.8307E-5 |
2 | 0.12886 | -5.24013E-5 | 2.39865E-5 |
3 | 0.12938 | -1.69897E-4 | 1.95647E-4 |
4 | 0.14707 | -6.40465E-5 | 8.889E-5 |
5 | 0.16841 | -1.89395E-4 | -8.47345E-5 |
6 | 0.16857 | 1.87945E-4 | 2.99104E-6 |
7 | 0.17036 | -4.74172E-6 | 3.75932E-4 |
8 | 0.17052 | -3.33343E-4 | -9.96864E-4 |
9 | 0.17251 | -1.37001E-3 | -4.84427E-4 |
10 | 0.17470 | 1.7132E-4 | 1.79091E-4 |
11 | 0.19989 | 6.09066E-4 | 9.6838E-5 |
12 | 0.20545 | -3.77151E-4 | -3.45972E-5 |
13 | 0.24966 | -7.51972E-5 | 7.53105E-4 |
14 | 0.25000 | 4.00703E-4 | 5.75455E-4 |
15 | 0.25395 | -1.05587E-4 | -2.24904E-4 |
16 | 0.25431 | -7.72161E-4 | 2.17875E-4 |
17 | 0.25631 | -1.92948E-4 | 1.40193E-4 |
18 | 0.25667 | 2.68453E-4 | 3.1487E-4 |
19 | 0.25876 | 1.97659E-3 | -2.56372E-3 |
20 | 0.26122 | -1.72797E-3 | 3.00745E-4 |
21 | 0.33303 | 1.68632E-3 | 1.5241E-3 |
22 | 0.34071 | -1.43891E-4 | 1.11421E-4 |
23 | 0.34135 | -1.96576E-4 | -1.56258E-4 |
24 | 0.34502 | -1.98447E-3 | 3.88433E-3 |
25 | 0.34943 | 5.0264E-4 | 7.19496E-4 |
26 | 0.48977 | 9.00383E-4 | 3.82175E-4 |
27 | 0.49109 | 1.08747E-4 | -8.17916E-4 |
28 | 0.49863 | 1.09924E-2 | -9.52888E-3 |
29 | 0.49932 | 7.07178E-4 | 5.39267E-4 |
30 | 0.50000 | -5.68686E-2 | 1.49427E-2 |
31 | 0.50798 | 4.09609E-3 | 3.38549E-3 |
32 | 0.50924 | 2.49329E-3 | 1.53651E-4 |
33 | 0.51606 | -2.02478E-3 | -1.21482E-4 |
34 | 0.51679 | 1.57948E-3 | 3.90198E-3 |
35 | 0.51753 | -2.16066E-1 | 3.08417E-1 |
36 | 0.51826 | -8.17839E-4 | -4.47904E-3 |
37 | 0.52608 | -1.56509E-2 | 1.49485E-2 |
38 | 0.52743 | 9.82268E-2 | 4.04899E-2 |
39 | 0.53632 | 1.59692E-2 | 9.82167E-3 |
40 | 0.53772 | 2.04158E-3 | -1.65273E-2 |
41 | 0.54697 | 2.04853E-3 | -4.38976E-3 |
42 | 0.54843 | -2.68707E-3 | -2.58915E-4 |
43 | 0.89909 | 2.87113E-5 | -2.47377E-4 |
44 | 0.92942 | 1.0866E-3 | -4.92856E-4 |
45 | 0.93417 | 2.76666E-4 | 1.32029E-3 |
46 | 0.96244 | -1.51541E-3 | 3.32379E-4 |
47 | 0.96696 | 4.13838E-4 | 5.18478E-4 |
48 | 0.99185 | 9.60627E-5 | -1.51881E-4 |
49 | 0.99455 | 2.34609E-4 | -2.43277E-4 |
50 | 0.99727 | 9.14279E-3 | 4.04993E-2 |
51 | 1.00000 | 1.3488E-3 | 2.80813E-3 |
52 | 1.00275 | 1.73626E-3 | 1.18637E-2 |
53 | 1.00551 | -7.84351E-4 | 8.59283E-4 |
54 | 1.02954 | 6.14168E-4 | 9.1179E-4 |
55 | 1.03472 | 1.35697E-3 | -1.23944E-3 |
56 | 1.04061 | -1.4633E-4 | -1.76998E-4 |
57 | 1.06951 | -4.38717E-4 | 3.69623E-4 |
58 | 1.07581 | 2.61011E-2 | 8.81037E-3 |
59 | 1.11346 | 9.53214E-4 | -1.67372E-4 |
60 | 1.11951 | 1.03157E-3 | -4.91838E-3 |
61 | 1.16035 | -1.32371E-4 | -1.19878E-4 |
62 | 1.16693 | -8.89028E-4 | -1.71104E-5 |
63 | 1.21136 | 8.55204E-4 | 7.86982E-4 |
64 | 13.66079 | 1.2779E-3 | -7.88285E-3 |
65 | 14.76529 | -4.9451E-4 | 5.92142E-3 |
66 | 27.55455 | 1.07922E-2 | 1.33972E-3 |
67 | 31.81193 | -1.1534E-2 | 9.36741E-3 |
68 | 182.62118 | -9.45677E-3 | -2.00994E-2 |
69 | 365.25998 | -9.25062E-3 | 8.89978E-3 |
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;
}