Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

First 6 Legendre Polynomials Plotted on Unit Sphere

For pretty colors :

rnlsaj = g[/_] := SphericalPlot3D[1, O, Q, Lighting + None' Axes + None'


viewPoint . tO, - 50r 0) sPhericalRegion + True, Boxed + False'
colorFunctionScaling + 'False, colorFunction'+ Function[{xr y, z, or Q, r) '
clowIcolorData ["Thermometercolors"] [ (LegendreP[1. cos te] I + 1) / zl l

rl
Inl46l:. ColorData [ "Thermometercolors" ]

cnrrl4tjl= colorDataFunction[{0, t,,


Lff jmil
ll,lr,\t Graphicsciiatttgtol , s[1]], {Sl2),9[3]i, {g[4]' sIs])il

()utli,3l'
fable [ {/, LegendreP If, xl, LegendreP[/' coste]l], Ut Ot 5l I // fableForn
01 I
1x cos Ie]
z-
^1
2
(- i +: x2) I2\ {-r*3cosfel2)
^l (-rx+sx3) | (-:co"[e] +scos[e]3)
,r (r-:ox2+35x4) i (l - so coslel2 + 35 cos [e]a)
3 s)
-l (rs x - 7o x3 + 63 x5) | (tu "o" tel - 70 cos [e] + 63 cos [e]
11 = PIot[{LegendreP[0, x], LegendreP[1. x], LegendreP12, x7, LegendreP[3, x]]'
{0'2' 0'90}],
{x, -1' 1}' PlotRange+ {-1.1, +1.1}, Frame'tFalse, Epilog{ (Text[P0'0'55}l}l
TextlPl, {-0.65, -0.85}l ' TextlP2, {-0.2, -O.65}1, EextlP3, {-0'4'

You might also like