14 double ca[] = {10, 9, 8, 7, 6, 5, 4, 3, 2, 1};
15 vector<double>
C(ca, ca + (N + 1) * (N + 2) / 2);
16 double sa[] = {6, 5, 4, 3, 2, 1};
17 vector<double>
S(sa, sa + N * (N + 1) / 2);
20 double x = 2,
y = 3,
z = 1;
22 v =
h(x,
y,
z, vx, vy, vz);
23 cout << v <<
" " << vx <<
" " << vy <<
" " << vz <<
"\n";
25 catch (
const exception&
e) {
26 cerr <<
"Caught exception: " << e.what() <<
"\n";
StridedVectorType vy(make_vector(y,*n, std::abs(*incy)))
Namespace for GeographicLib.
Array< double, 1, 3 > e(1./3., 0.5, 2.)
Matrix< Scalar, Dynamic, Dynamic > C
Header for GeographicLib::SphericalHarmonic class.
StridedVectorType vx(make_vector(x,*n, std::abs(*incx)))
Spherical harmonic series.
set noclip points set clip one set noclip two set bar set border lt lw set xdata set ydata set zdata set x2data set y2data set boxwidth set dummy x