2

Here is the implementation of the Δ function, illustrating the handyness of the Module command.

In[34]:=

Clear[Delta, e] ;

Delta[e_] := Module[{}, Clear[y, r] ; yhtalo = y''[r] - (-2/r - e) y[r] == 0 ... and tells Mathematica NOT to evaluate the function before it has a numerical argument *)

Plot[Delta[e], {e, -1.5, -0.1}, PlotRange {-2, 2}]

FindRoot[Delta[e] 0, {e, -1.1, -0.9}]

General :: spell1 : Possible spelling error: new symbol name \"dyal\" is similar to existing symbol \"yal\".  More…

General :: spell1 : Possible spelling error: new symbol name \"dylo\" is similar to existing symbol \"ylo\".  More…

General :: spell1 : Possible spelling error: new symbol name \"alku\" is similar to existing symbol \"ralku\".  More…

General :: stop : Further output of General :: spell1 will be suppressed during this calculation. More…

[Graphics:../HTMLFiles/ex09_solutions_125.gif]

Out[36]=

⁃Graphics⁃

Out[37]=

{e -1.}


Created by Mathematica  (April 10, 2007) Valid XHTML 1.1!