File:GaulegExample.png: Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>Dmitrii Kouznetsov
({{Image notes |Description=Error of the approximation of the integral <math>\int_{-1}^1 f(x) {\rm d}x <math> with the <math>N</math>-point Legendre-Gaussian quadrature formula versus number <math>N</math> for the following functions: * <math>f(x)=\sqrt{1-x^2}</math> (red) * <math>f(x)=\frac{1}{1+x^2}</math> (green) * <math>f(x)=\frac{1}{3+x} </math> (blue) * <math>f(x)=x^16 </math> (black) In the last case, at <math> N>8 </math> the residual would be zero; practically, it is determined by the...)
 
(== Summary == Importing file)
Tag: Server-side upload
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Image notes
== Summary ==
|Description=Error of the approximation of the integral
Importing file
<math>\int_{-1}^1 f(x) {\rm d}x <math> with the <math>N</math>-point Legendre-Gaussian quadrature formula versus number <math>N</math> for the following functions:
* <math>f(x)=\sqrt{1-x^2}</math> (red)
* <math>f(x)=\frac{1}{1+x^2}</math> (green)
* <math>f(x)=\frac{1}{3+x} </math> (blue)
* <math>f(x)=x^16 </math> (black)
In the last case, at <math> N>8 </math> the residual would be zero; practically, it is determined by the precision of arithmetic used to perform the evaluation. In this example, long double variables were used.
 
The logarithm of modulus of residual is plotted versus number of points in the quadrature formula. If the residual is positive, the datum is represented with circle; if the residual is negative, the datum is represented with dot. Out of grid, at the bottom of the graphic, the precision of calculus is not sufficient.
 
The following code is used to generate the figure:
 
[[GauLegExample/code]]
 
The figure is intented to be used for article
[[Legendre-Gauss Quadrature formula]].
|Author= Dmitrii Kouznetsov
|Date= 2008
|Source=[[GauLegExample/code]]
|Country first published in= Japan
|Copyright holder= Dmitrii Kouznetsov
|Notes=The figure is intented to be used in the article  [[Legendre-Gauss Quadrature formula]].
|Other versions=}}
 
{{attribution}}

Latest revision as of 19:58, 11 March 2022

Summary

Importing file

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current19:58, 11 March 2022Thumbnail for version as of 19:58, 11 March 20221,044 × 780 (81 KB)Maintenance script (talk | contribs)== Summary == Importing file

Metadata