File:Taylorspolynomialexbig.svg

From Infogalactic: the planetary knowledge core
Jump to: navigation, search
Original file(SVG file, nominally 600 × 480 pixels, file size: 13 KB)

Summary

it's a plot of the exponential function and its 4th-order Taylor approximation, i.e. <img src="https://wikimedia.org/api/rest_v1/media/math/render/svg/9ebcac3f33b663429dbccae912767458e3834f22" class="mwe-math-fallback-image-inline mw-math-element" aria-hidden="true" style="vertical-align: -2.005ex; width:23.63ex; height:5.843ex;" alt="{\displaystyle 1+x+{\frac {x^{2}}{2}}+{\frac {x^{3}}{6}}+{\frac {x^{4}}{24}}}">. I have made it with Gnuplot, using the following code:

# set the output
set terminal svg enhanced fname "Times" fsize 18
set output "Taylorspolynomialexbig.svg"

# axis properties
set xrange [-4:4]
set yrange [-1:20]
set xzeroaxis linetype -1 linewidth 0.5
set yzeroaxis linetype -1 linewidth 0.5
set xlabel "x"
set key 0.15,19

plot exp(x) ti "exp(x)" with lines linewidth 3,\
     1+x+(x**2)/2+(x**3)/6++(x**4)/24 ti "4th order Taylor" with lines linewidth 3

Then I have post-processed it with Inkscape

Licensing

Lua error in package.lua at line 80: module 'strict' not found.

File history

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

Date/TimeThumbnailDimensionsUserComment
current14:36, 12 January 2017Thumbnail for version as of 14:36, 12 January 2017600 × 480 (13 KB)127.0.0.1 (talk)<p>it's a plot of the exponential function and its 4th-order Taylor approximation, i.e. <span><span class="mwe-math-mathml-inline mwe-math-mathml-a11y mw-math-element" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow class="MJX-TeXAtom-ORD"><mstyle displaystyle="true" scriptlevel="0"><mn>1</mn><mo>+</mo><mi>x</mi><mo>+</mo><mrow class="MJX-TeXAtom-ORD"><mfrac><msup><mi>x</mi><mrow class="MJX-TeXAtom-ORD"><mn>2</mn></mrow></msup><mn>2</mn></mfrac></mrow><mo>+</mo><mrow class="MJX-TeXAtom-ORD"><mfrac><msup><mi>x</mi><mrow class="MJX-TeXAtom-ORD"><mn>3</mn></mrow></msup><mn>6</mn></mfrac></mrow><mo>+</mo><mrow class="MJX-TeXAtom-ORD"><mfrac><msup><mi>x</mi><mrow class="MJX-TeXAtom-ORD"><mn>4</mn></mrow></msup><mn>24</mn></mfrac></mrow></mstyle></mrow><annotation encoding="application/x-tex">{\displaystyle 1+x+{\frac {x^{2}}{2}}+{\frac {x^{3}}{6}}+{\frac {x^{4}}{24}}}</annotation></semantics></math></span><img src="https://wikimedia.org/api/rest_v1/media/math/render/svg/9ebcac3f33b663429dbccae912767458e3834f22" class="mwe-math-fallback-image-inline mw-math-element" aria-hidden="true" style="vertical-align: -2.005ex; width:23.63ex; height:5.843ex;" alt="{\displaystyle 1+x+{\frac {x^{2}}{2}}+{\frac {x^{3}}{6}}+{\frac {x^{4}}{24}}}"></span>. I have made it with Gnuplot, using the following code: </p> <pre> # set the output set terminal svg enhanced fname "Times" fsize 18 set output "Taylorspolynomialexbig.svg" # axis properties set xrange [-4:4] set yrange [-1:20] set xzeroaxis linetype -1 linewidth 0.5 set yzeroaxis linetype -1 linewidth 0.5 set xlabel "x" set key 0.15,19 plot exp(x) ti "exp(x)" with lines linewidth 3,\ 1+x+(x**2)/2+(x**3)/6++(x**4)/24 ti "4th order Taylor" with lines linewidth 3 </pre> <p>Then I have post-processed it with Inkscape </p>
  • You cannot overwrite this file.

The following page links to this file: