Session 2 A

You might also like

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

1

In[134]:= V[x_] := 2 12 0.22 x2


2

Vm [x_] := 12 1 - -0.2 x 
2

Plot[{Vm [x], V[x]}, {x, - 5, 15},


In[141]:=

PlotStyle 
{{Black, AbsoluteThickness[1], AbsoluteDashing[2]},
{Black, AbsoluteThickness[1]}},
PlotRange  {{- 5, 15}, {0, 20}},
PlotLegends  {"Vm , the Morse potential", "V, the harmonic potential"},
AxesLabel  {"x", "value of function"},
PlotLabel  Style[Framed["Plots of Morse and harmonic potentials"]]]

Plots of Morse and harmonic potentials


value of function
20

15
Vm , the Morse potential
Out[142]=

10 V, the harmonic potential

-5
x
0 5 10 15

Plot[{Vm [x], V[x]}, {x, - 0.5, 0.5},


PlotStyle 
In[143]:=

{{Black, AbsoluteThickness[1], AbsoluteDashing[2]},


{Black, AbsoluteThickness[1]}},
PlotRange  {{- 0.5, 0.5}, {0, 0.15}},
PlotLegends  {"Vm , the Morse potential", "V, the harmonic potential"},
AxesLabel  {"x", "value of function"},
PlotLabel  Style[Framed["Plots of Morse and harmonic potentials"]]]

Plots of Morse and harmonic potentials


value of function

0.14

0.12

0.10
Vm , the Morse potential
Out[143]=
0.08 V, the harmonic potential
0.06

0.04

0.02

-0.4 -0.2
x
0.0 0.2 0.4
2

Vbetaa[x_] := 12 1 - -0.3 x 
2
In[154]:=

Vbetab[x_] := 12 1 - -0.4 x 
2

Vbetac[x_] := 12 1 - -0.5 x 
2

Plot[{Vbetaa[x], Vbetab[x], Vbetac[x]}, {x, - 5, 15},


PlotStyle 
In[157]:=

{{Black, AbsoluteThickness[1], AbsoluteDashing[2]},


{Black, AbsoluteThickness[1]},
{Red, AbsoluteThickness[1], AbsoluteDashing[5]}},
PlotRange  {{- 5, 15}, {0, 20}},
PlotLegends  {"β=0.3", "β=0.4", "β=0.5"},
AxesLabel  {"x", "Morse potential"},
PlotLabel  Style[Framed["Plots of Morse potentials for different values of β"]]]

Plots of Morse potentials for different values of β


Morse potential
20

β=0.3
15

β=0.4
β=0.5
Out[157]=

10

-5
x
0 5 10 15

Vdeltaa[x_] := 5 1 - -0.2 x 
In[158]:=
2

Vdeltab[x_] := 10 1 - -0.2 x 
2
In[159]:=

Vdeltac[x_] := 15 1 - -0.2 x 
2
In[160]:=
3

Plot[{Vdeltaa[x], Vdeltab[x], Vdeltac[x]}, {x, - 5, 15},


PlotStyle 
In[161]:=

{{Black, AbsoluteThickness[1], AbsoluteDashing[2]},


{Black, AbsoluteThickness[1]},
{Red, AbsoluteThickness[1], AbsoluteDashing[5]}},
PlotRange  {{- 5, 15}, {0, 20}},
PlotLegends  {"De =5", "De =10", "De =15"},
AxesLabel  {"x", "Morse potential"},
PlotLabel  Style[Framed["Plots of Morse potentials for different values of De "]]]

Plots of Morse potentials for different values of De


Morse potential
20

De =5
15

De =10
De =15
Out[161]=

10

-5
x
0 5 10 15

You might also like