19double WaveFunction(
double x,
double y)
29void schroedinger_hydrogen()
31 TH2F *h2D =
new TH2F(
"Hydrogen Atom",
32 "Hydrogen in n = 2, l = 0, m = 0 state; Position in x direction; Position in y direction", 200,
33 -10, 10, 200, -10, 10);
35 for (
float i = -10; i < 10; i += 0.01) {
36 for (
float j = -10; j < 10; j += 0.01) {
37 h2D->
Fill(i, j, WaveFunction(i, j));
47 auto c1_1 =
c1->cd(1);
48 c1_1->SetRightMargin(0.14);
57 "The Electron is more likely to be found in the yellow areas and less likely to be found in the blue areas.");
62 auto c1_2 =
c1->cd(2);
66 h2Dc->
SetTitle(
"3D view of probability amplitude;;");
virtual void SetLabelSize(Float_t size=0.04)
Set size of axis labels.
void SetTitle(const char *title) override
Change/set the title.
void Draw(Option_t *option="") override
Draw this histogram with options.
virtual void SetContour(Int_t nlevels, const Double_t *levels=nullptr)
Set the number and values of contour levels.
TObject * Clone(const char *newname="") const override
Make a complete copy of the underlying object.
2-D histogram with a double per channel (see TH1 documentation)
2-D histogram with a float per channel (see TH1 documentation)
Int_t Fill(Double_t) override
Invalid Fill method.
RVec< PromoteTypes< T0, T1 > > pow(const T0 &x, const RVec< T1 > &v)
VecExpr< UnaryOp< Sqrt< T >, VecExpr< A, T, D >, T >, T, D > sqrt(const VecExpr< A, T, D > &rhs)
constexpr Double_t E()
Base of natural log: .