File:Laguerre poly.svg

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

Summary

I made it with the following <a href="https://en.wikipedia.org/wiki/Gnuplot" class="extiw" title="en:Gnuplot">Gnuplot</a> code:


# set the output
set terminal svg
set output "laguerre_poly.svg"

set title "Laguerre Polynomials"

# axis properties
set xrange [-5:20]
set yrange [-10:20]
set xzeroaxis linetype -1 linewidth 0.5
set yzeroaxis linetype -1 linewidth 0.5
set xlabel "x"
set ylabel "L_n (x)"
plot 1 ti "n = 0" with lines linewidth 2,\
     -x+1 ti "n = 1" with lines linewidth 2,\
     (x**2-4*x+2)/2 ti "n = 2" with lines linewidth 2,\
     (-x**3+9*x**2-18*x+6)/6 ti "n = 3" with lines linewidth 2,\
     (x**4-16*x**3+72*x**2-96*x+24)/24 ti "n = 4" with lines linewidth 2,\
     (-x**5+25*x**4-200*x**3+600*x**2-600*x+120)/120 ti "n = 5" with lines linewidth 2

Then I postprocessed with <a href="https://en.wikipedia.org/wiki/Inkscape" class="extiw" title="en:Inkscape">Inkscape</a> to change the stroke style of each line.

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
current18:30, 8 January 2017Thumbnail for version as of 18:30, 8 January 2017600 × 480 (15 KB)127.0.0.1 (talk)<p>I made it with the following <a href="https://en.wikipedia.org/wiki/Gnuplot" class="extiw" title="en:Gnuplot">Gnuplot</a> code: </p> <pre> # set the output set terminal svg set output "laguerre_poly.svg" set title "Laguerre Polynomials" # axis properties set xrange [-5:20] set yrange [-10:20] set xzeroaxis linetype -1 linewidth 0.5 set yzeroaxis linetype -1 linewidth 0.5 set xlabel "x" set ylabel "L_n (x)" plot 1 ti "n = 0" with lines linewidth 2,\ -x+1 ti "n = 1" with lines linewidth 2,\ (x**2-4*x+2)/2 ti "n = 2" with lines linewidth 2,\ (-x**3+9*x**2-18*x+6)/6 ti "n = 3" with lines linewidth 2,\ (x**4-16*x**3+72*x**2-96*x+24)/24 ti "n = 4" with lines linewidth 2,\ (-x**5+25*x**4-200*x**3+600*x**2-600*x+120)/120 ti "n = 5" with lines linewidth 2 </pre> <p>Then I postprocessed with <a href="https://en.wikipedia.org/wiki/Inkscape" class="extiw" title="en:Inkscape">Inkscape</a> to change the stroke style of each line. </p>
  • You cannot overwrite this file.

The following page links to this file: