mirror of
https://github.com/ra3xdh/qucs_s
synced 2025-03-28 21:13:26 +00:00
73 lines
6.5 KiB
C
73 lines
6.5 KiB
C
#ifndef LEGENDRE
|
|
#define LEGENDRE
|
|
//Legendre coeffs table
|
|
//Generated automatically! DO NOT EDIT!!!
|
|
|
|
double LegendrePoles[20][40]={
|
|
|
|
/* 1 st order */ {
|
|
-1.000000, 0.000000, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0
|
|
},
|
|
/* 2 nd order */ {
|
|
-0.70711, 0.70711, -0.70711, -0.70711, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0
|
|
},
|
|
/* 3 rd order */ {
|
|
-0.34519, 0.90087, -0.34519, -0.90087, -0.62033, 0.000000, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0
|
|
},
|
|
/* 4 th order */ {
|
|
-0.23169, 0.94551, -0.23169, -0.94551, -0.54974, 0.35857, -0.54974, -0.35857, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0
|
|
},
|
|
/* 5 th order */ {
|
|
-0.15359, 0.96815, -0.15359, -0.96815, -0.38814, 0.58863, -0.38814, -0.58863, -0.46809, 0.000000, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0
|
|
},
|
|
/* 6 th order */ {
|
|
-0.11519, 0.97792, -0.11519, -0.97792, -0.30896, 0.69817, -0.30896, -0.69817, -0.43890, 0.23998, -0.43890, -0.23998, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0
|
|
},
|
|
/* 7 th order */ {
|
|
-0.08621, 0.98437, -0.08621, -0.98437, -0.23744, 0.77830, -0.23744, -0.77830, -0.34923, 0.42900, -0.34923, -0.42900, -0.38210, 0.00000, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0
|
|
},
|
|
/* 8 th order */ {
|
|
-0.06894, 0.98797, -0.06894, -0.98797, -0.19428, 0.82477, -0.19428, -0.82477, -0.30028, 0.54104, -0.30028, -0.54104, -0.36718, 0.18088, -0.36718, -0.18088, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0
|
|
},
|
|
/* 9 th order */ {
|
|
-0.05510, 0.99066, -0.05510, -0.99066, -0.15728, 0.86134, -0.15728, -0.86134, -0.24855, 0.63382, -0.24855, -0.63382, -0.30939, 0.33654, -0.30939, -0.33654, -0.32569, 0.00000, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0
|
|
},
|
|
/* 10 th order */ {
|
|
-0.04590, 0.99238, -0.04590, -0.99238, -0.13252, 0.88526, -0.13252, -0.88526, -0.21417, 0.69454, -0.21417, -0.69454, -0.27741, 0.43965, -0.27741, -0.43965, -0.31721, 0.14543, -0.31721, -0.14543, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0
|
|
},
|
|
/* 11 th order */ {
|
|
-0.03823, 0.99376, -0.03823, -0.99376, -0.11117, 0.90499, -0.11117, -0.90499, -0.18201, 0.74593, -0.18201, -0.74593, -0.23971, 0.53094, -0.23971, -0.53094, -0.27630, 0.27674, -0.27630, -0.27674, -0.28536, 0.000000, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0
|
|
},
|
|
/* 12 th order */ {
|
|
-0.03276, 0.99472, -0.03276, -0.99472, -0.09588, 0.91892, -0.09588, -0.91892, -0.15892, 0.78221, -0.15892, -0.78221, -0.21347, 0.59517, -0.21347, -0.59517, -0.25419, 0.36978, -0.25419, -0.36978, -0.28028, 0.12175, -0.28028, -0.12175, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0
|
|
},
|
|
/* 13 th order */ {
|
|
-0.62151, 1.84018, -0.62151, -1.84018, -0.08124, 0.52564, -0.08124, -0.52564, -0.23418, 0.47367, -0.23418, -0.47367, -0.36107, 0.37664, -0.36107, -0.37664, -0.44835, 0.24548, -0.44835, -0.24548, -0.48543, 0.09101, -0.48543, -0.09101, -0.40641, 0.00000, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0
|
|
},
|
|
/* 14 th order */ {
|
|
-0.718281, 1.935638, -0.718281, -1.935638, -0.056992, 0.499295, -0.056992, -0.499295, -0.195303, 0.479989, -0.195303, -0.479989, -0.325178, 0.401909, -0.325178, -0.401909, -0.405718, 0.285130, -0.405718, -0.285130, -0.502819, 0.073438, -0.502819, -0.073438, -0.447722, 0.192650, -0.447722, -0.192650, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0
|
|
},
|
|
/* 15 th order */ {
|
|
-0.192650, 1.34911, -0.192650, -1.34911, -0.06604, 0.53901, -0.06604, -0.53901, -0.19354, 0.50544, -0.19354, -0.50544, -0.30757, 0.44142, -0.30757, -0.44142, -0.40171, 0.35275, -0.40171, -0.35275, -0.47160, 0.24535, -0.47160, -0.24535, -0.52901, 0.000000, -0.51448, 0.12578, -0.51448, -0.12578, 0.0, 0.0, 0.0, 0.0, 0.0
|
|
}
|
|
///* 16 th order */ {
|
|
// -3.739232, 13.935028, -3.739232, -13.935028, -6.071241, 11.747875, -6.071241, -11.747875, -7.673241, 9.787697, -7.673241, -9.787697, -8.847968, 7.928773, -8.847968, -7.928773, -9.712326, 6.125761, -9.712326, -6.125761, -10.325121, 4.356163, -10.325121, -4.356163, -10.911887, 0.867721, -10.911887, -0.867721, -10.718985, 2.606568, -10.718985, -2.606568, 0.0, 0.0, 0.0, 0.0
|
|
// },
|
|
///* 17 th order */ {
|
|
// -3.827174, 14.892159, -3.827174, -14.892159, -6.234581, 12.678120, -6.234581, -12.678120, -7.905450, 10.699145, -7.905450, -10.699145, -9.147588, 8.825998, -9.147588, -8.825998, -10.080296, 7.012010, -10.080296, -7.012010, -10.764132, 5.234075, -10.764132, -5.234075, -11.233439, 3.478542, -11.233439, -3.478542, -11.598530, 0.000000, -11.508076, 1.736203, -11.508076, -1.736203, 0.0, 0.0, 0.0
|
|
// },
|
|
///* 18 th order */ {
|
|
// -3.911572, 15.850754, -3.911572, -15.850754, -6.390973, 13.610547, -6.390973, -13.610547, -8.127284, 11.613132, -8.127284, -11.613132, -9.433133, 9.725901, -9.433133, -9.725901, -10.430010, 7.900893, -10.430010, -7.900893, -11.180044, 6.114391, -11.180044, -6.114391, -11.718943, 4.352488, -11.718943, -4.352488, -12.068139, 2.605877, -12.068139, -2.605877, -12.239902, 0.867741, -12.239902, -0.867741, 0.0, 0.0
|
|
// },
|
|
///* 19 th order */ {
|
|
// -3.992759, 16.810692, -3.992759, -16.810692, -6.541095, 14.544991, -6.541095, -14.544991, -8.339801, 12.529484, -8.339801, -12.529484, -9.706101, 10.628321, -9.706101, -10.628321, -10.763544, 8.792290, -10.763544, -8.792290, -11.575589, 6.997092, -11.575589, -6.997092, -12.179243, 5.228415, -12.179243, -5.228415, -12.597062, 3.477100, -12.597062, -3.477100, -12.923980, 0.000000, -12.842816, 1.736037, -12.842816, -1.736037, 0.0
|
|
// },
|
|
///* 20 th order */ {
|
|
// -4.071019, 17.771869, -4.071019, -17.771869, -6.685527, 15.481306, -6.685527, -15.481306, -8.543895, 13.448046, -8.543895, -13.448046, -9.967765, 11.533112, -9.967765, -11.533112, -11.082571, 9.686112, -11.082571, -9.686112, -11.953103, 7.881991, -11.953103, -7.881991, -12.617294, 6.106632, -12.617294, -6.106632, -13.098755, 4.349634, -13.098755, -4.349634, -13.567377, 0.867486, -13.567377, -0.867486, -13.412693, 2.605660, -13.412693, -2.605660
|
|
// }
|
|
|
|
};
|
|
|
|
#endif // LEGENDRE
|
|
|