WPILibC++ 2024.3.2
gauss_legendre_50.hpp
Go to the documentation of this file.
1/*################################################################################
2 ##
3 ## Copyright (C) 2016-2023 Keith O'Hara
4 ##
5 ## This file is part of the GCE-Math C++ library.
6 ##
7 ## Licensed under the Apache License, Version 2.0 (the "License");
8 ## you may not use this file except in compliance with the License.
9 ## You may obtain a copy of the License at
10 ##
11 ## http://www.apache.org/licenses/LICENSE-2.0
12 ##
13 ## Unless required by applicable law or agreed to in writing, software
14 ## distributed under the License is distributed on an "AS IS" BASIS,
15 ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 ## See the License for the specific language governing permissions and
17 ## limitations under the License.
18 ##
19 ################################################################################*/
20
21/*
22 * Gauss-Legendre quadrature: 50 points
23 */
24
25namespace gcem
26{
27
28static const long double gauss_legendre_50_points[50] = \
29{
30 -0.03109833832718887611232898966595L,
31 0.03109833832718887611232898966595L,
32 -0.09317470156008614085445037763960L,
33 0.09317470156008614085445037763960L,
34 -0.15489058999814590207162862094111L,
35 0.15489058999814590207162862094111L,
36 -0.21600723687604175684728453261710L,
37 0.21600723687604175684728453261710L,
38 -0.27628819377953199032764527852113L,
39 0.27628819377953199032764527852113L,
40 -0.33550024541943735683698825729107L,
41 0.33550024541943735683698825729107L,
42 -0.39341431189756512739422925382382L,
43 0.39341431189756512739422925382382L,
44 -0.44980633497403878914713146777838L,
45 0.44980633497403878914713146777838L,
46 -0.50445814490746420165145913184914L,
47 0.50445814490746420165145913184914L,
48 -0.55715830451465005431552290962580L,
49 0.55715830451465005431552290962580L,
50 -0.60770292718495023918038179639183L,
51 0.60770292718495023918038179639183L,
52 -0.65589646568543936078162486400368L,
53 0.65589646568543936078162486400368L,
54 -0.70155246870682225108954625788366L,
55 0.70155246870682225108954625788366L,
56 -0.74449430222606853826053625268219L,
57 0.74449430222606853826053625268219L,
58 -0.78455583290039926390530519634099L,
59 0.78455583290039926390530519634099L,
60 -0.82158207085933594835625411087394L,
61 0.82158207085933594835625411087394L,
62 -0.85542976942994608461136264393476L,
63 0.85542976942994608461136264393476L,
64 -0.88596797952361304863754098246675L,
65 0.88596797952361304863754098246675L,
66 -0.91307855665579189308973564277166L,
67 0.91307855665579189308973564277166L,
68 -0.93665661894487793378087494727250L,
69 0.93665661894487793378087494727250L,
70 -0.95661095524280794299774564415662L,
71 0.95661095524280794299774564415662L,
72 -0.97286438510669207371334410460625L,
73 0.97286438510669207371334410460625L,
74 -0.98535408404800588230900962563249L,
75 0.98535408404800588230900962563249L,
76 -0.99403196943209071258510820042069L,
77 0.99403196943209071258510820042069L,
78 -0.99886640442007105018545944497422L,
79 0.99886640442007105018545944497422L\
80};
81
82static const long double gauss_legendre_50_weights[50] = \
83{
84 0.06217661665534726232103310736061L,
85 0.06217661665534726232103310736061L,
86 0.06193606742068324338408750978083L,
87 0.06193606742068324338408750978083L,
88 0.06145589959031666375640678608392L,
89 0.06145589959031666375640678608392L,
90 0.06073797084177021603175001538481L,
91 0.06073797084177021603175001538481L,
92 0.05978505870426545750957640531259L,
93 0.05978505870426545750957640531259L,
94 0.05860084981322244583512243663085L,
95 0.05860084981322244583512243663085L,
96 0.05718992564772838372302931506599L,
97 0.05718992564772838372302931506599L,
98 0.05555774480621251762356742561227L,
99 0.05555774480621251762356742561227L,
100 0.05371062188899624652345879725566L,
101 0.05371062188899624652345879725566L,
102 0.05165570306958113848990529584010L,
103 0.05165570306958113848990529584010L,
104 0.04940093844946631492124358075143L,
105 0.04940093844946631492124358075143L,
106 0.04695505130394843296563301363499L,
107 0.04695505130394843296563301363499L,
108 0.04432750433880327549202228683039L,
109 0.04432750433880327549202228683039L,
110 0.04152846309014769742241197896407L,
111 0.04152846309014769742241197896407L,
112 0.03856875661258767524477015023639L,
113 0.03856875661258767524477015023639L,
114 0.03545983561514615416073461100098L,
115 0.03545983561514615416073461100098L,
116 0.03221372822357801664816582732300L,
117 0.03221372822357801664816582732300L,
118 0.02884299358053519802990637311323L,
119 0.02884299358053519802990637311323L,
120 0.02536067357001239044019487838544L,
121 0.02536067357001239044019487838544L,
122 0.02178024317012479298159206906269L,
123 0.02178024317012479298159206906269L,
124 0.01811556071348939035125994342235L,
125 0.01811556071348939035125994342235L,
126 0.01438082276148557441937890892732L,
127 0.01438082276148557441937890892732L,
128 0.01059054838365096926356968149924L,
129 0.01059054838365096926356968149924L,
130 0.00675979919574540150277887817799L,
131 0.00675979919574540150277887817799L,
132 0.00290862255315514095840072434286L,
133 0.00290862255315514095840072434286L\
134};
135
136}
Definition: is_even.hpp:29
static const long double gauss_legendre_50_points[50]
Definition: gauss_legendre_50.hpp:28
static const long double gauss_legendre_50_weights[50]
Definition: gauss_legendre_50.hpp:82