File:Runge's phenomenon in Lagrange polynomials.svg

From Vigyanwiki

Original file(SVG file, nominally 719 × 491 pixels, file size: 73 KB)

This file is from Wikimedia Commons and may be used by other projects. The description on its file description page there is shown below.

This file supersedes the file Lagrange polynomial Divergence.jpg. It is recommended to use this file rather than the other one.

Bahasa Indonesia  davvisámegiella  Deutsch  English  español  français  italiano  magyar  Nederlands  polski  svenska  македонски  മലയാളം  português do Brasil  русский  slovenščina  日本語  中文(简体)  中文(繁體)  farsi  +/−

minor quality

Summary

Description
English: The polynomial interpolation of samples taken from a Gaussian distribution displays significant ringing near the endpoints.
Date
Source Own work
Author Glosser.ca
SVG genesis
InfoField
 
The SVG code is valid.
 
This diagram was created with Mathematica
 
The file size of this SVG diagram may be irrationally large because its text has been converted to paths inhibiting translations.
Source code
InfoField

Mathematica code

dat = {#, Exp[-#^2/2]} & /@ Range[-5, 5];
{xs, ys} = Transpose[dat];

Basis[pts_, x_] := Times @@ (x - DeleteCases[pts, #])/Times @@ (# - DeleteCases[pts, #]) & /@ pts

f = Total[ys*Basis[xs, x]];

Plot[
 {
  Exp[-x^2/2],
  f
  }, {x, -5, 5},
 Epilog -> {PointSize[Large], Point[dat]},
 PlotRange -> All,
 PlotStyle -> Thick,
 Frame -> True,
 FrameStyle -> Black,
 Axes -> False,
 GridLines -> Automatic,
 GridLinesStyle -> Directive[LightGray, Dashed],
 ImageSize -> Large]
but from where does the text come ?

Licensing

I, the copyright holder of this work, hereby publish it under the following licence:
w:en:Creative Commons
attribution share alike
This file is licensed under the Creative Commons Attribution-Share Alike 4.0 International licence.
You are free:
  • to share – to copy, distribute and transmit the work
  • to remix – to adapt the work
Under the following conditions:
  • attribution – You must give appropriate credit, provide a link to the licence, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
  • share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible licence as the original.

Captions

Add a one-line explanation of what this file represents

Items portrayed in this file

depicts

23 April 2016

File history

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

Date/TimeThumbnailDimensionsUserComment
current20:17, 29 April 2016Thumbnail for version as of 20:17, 29 April 2016719 × 491 (73 KB)wikimediacommons>RayhemAdd legend

The following page uses this file:

Metadata