Funny 4.0 vs 4.2 behavior
- To: mathgroup at smc.vnet.net
- Subject: [mg39099] Funny 4.0 vs 4.2 behavior
- From: phrje at warwick.ac.uk (Don McKenzie Paul)
- Date: Wed, 29 Jan 2003 03:38:03 -0500 (EST)
- Organization: University of Warwick
- Sender: owner-wri-mathgroup at wolfram.com
Im using Mathematica 4.2 on my MacOSX notebook but still have 4.0 on my
desktop. I have encountered a strange thing which is causing me
problems. I have defined the wavefunction in momentum space for a sho
in 4.0 when i evaluate for the ground state I get the answer I would
expect.
In 4.2 the answer is the same but I get an Integer 1 appearing which
makes it very difficult to manipulate the result to the form I want.
I have attached the Notebook content below. This is the 4.0 version but
with the 4.2 result copied across.
Any comments/help?
Don
Notebook[{
Cell[BoxData[
\(\[CurlyPhi]\_\[Gamma]_[
p_] := \(\(\[ImaginaryI]\^\(-\[Gamma]\)\) \((\(\@\[Pi]\
2\^\[Gamma]\ \
\(\[Gamma]!\)\)\/a)\)\)\^\(-\(1\/2\)\)\ \(\[ExponentialE]\^\(\(\(-p\^2\)
a\^2\)\/2\)\) HermiteH[\[Gamma], a\ p]\)], "Input"],
Cell[BoxData[
\(In\ 4.0\)], "Input"],
Cell[CellGroupData[{
Cell[BoxData[
\(\[CurlyPhi]\_0[p]\)], "Input"],
Cell[BoxData[
\(TraditionalForm\`\[ExponentialE]\^\(\(-\(1\/2\)\)\ a\^2\ \
p\^2\)\/\(\@\(1\/a\)\ \@\[Pi]\%4\)\)], "Output"]
}, Open ]],
Cell[BoxData[
\(\[ExponentialE]\^\(\(-\(1\/2\)\)\ a\^2\ p\^2\)\/\(\@\(1\/a\)\ \
\@\[Pi]\%4\)\)], "Text"],
Cell[BoxData[
\(In\ 4.2\)], "Input"],
Cell[CellGroupData[{
Cell[BoxData[
\(TraditionalForm\`\[CurlyPhi]\_0[p]\)], "Input"],
Cell[BoxData[
\(TraditionalForm\`\[ExponentialE]\^\(\(-\(1\/2\)\)\ a\^2\
p\^2\)\/\@1[\@\
\[Pi]\/a]\)], "Output"]
}, Open ]]
},
FrontEndVersion->"4.0 for Macintosh",
ScreenRectangle->{{0, 1056}, {0, 772}},
WindowSize->{520, 650},
WindowMargins->{{28, Automatic}, {-30, Automatic}},
MacintoshSystemPageSetup->"\<\
00<0001804P000000]P2:?oQon82n@960dL5:0?l0080001804P000000]P2:001
0000I00000400`<300000Gd000400@0000000000000004P801T1T00000000000
00000000000000000000000000000000\>"
]