# set the output
set terminal svg
set output "legendre_poly.svg"
set title "Legendre Polynomials"
# axis properties
set xrange [-1:1]
set yrange [-1:2]
set xlabel "x"
set ylabel "P_n (x)"
plot 1 ti "n = 0" with lines linewidth 2,\
x ti "n = 1" with lines linewidth 2,\
(3*x**2-1)/2 ti "n = 2" with lines linewidth 2,\
(5*x**3-3*x)/2 ti "n = 3" with lines linewidth 2,\
(35*x**4-30*x**2+3)/8 ti "n = 4" with lines linewidth 2,\
(63*x**5-70*x**3+15*x)/8 ti "n = 5" with lines linewidth 2
Then I postprocessed with Inkscape to change the stroke style of each line.
GNU 자유 문서 사용 허가서 1.2판 또는 자유 소프트웨어 재단에서 발행한 이후 판의 규정에 따라 본 문서를 복제하거나 개작 및 배포할 수 있습니다. 본 문서에는 변경 불가 부분이 없으며, 앞 표지 구절과 뒷 표지 구절도 없습니다. 본 사용 허가서의 전체 내용은 GNU 자유 문서 사용 허가서 부분에 포함되어 있습니다.http://www.gnu.org/copyleft/fdl.htmlGFDLGNU Free Documentation Licensetruetrue
저작자표시 – 적절한 저작자 표시를 제공하고, 라이센스에 대한 링크를 제공하고, 변경사항이 있는지를 표시해야 합니다. 당신은 합리적인 방식으로 표시할 수 있지만, 어떤 방식으로든 사용권 허가자가 당신 또는 당신의 사용을 지지하는 방식으로 표시할 수 없습니다.
동일조건변경허락 – 만약 당신이 이 저작물을 리믹스 또는 변형하거나 이 저작물을 기반으로 제작하는 경우, 당신은 당신의 기여물을 원저작물과 동일하거나 호환 가능한 라이선스에 따라 배포하여야 합니다.
이 라이선스 틀은 GFDL 라이선스 변경의 일부로 이 파일에 추가되었습니다.http://creativecommons.org/licenses/by-sa/3.0/CC BY-SA 3.0Creative Commons Attribution-Share Alike 3.0truetrue
I made it with the following Gnuplot code: <pre> # set the output set terminal svg set output "legendre.svg" set title "Legendre Polynomials" # axis properties set xrange [-1:1] set yrange [-1:2] set xlabel "x" set ylabel "P_n (x)" plo