My implementations and additional graphs for the Legendre functions mentioned in the thesis cited in the preceding line and PDF. The Legendre polynomials, functions, and associated functions have many applications in quantum mechanics and other branches of applied and theoretical physics.
Legendre Functions Application
Magnitude Graph for P(z, 8)Imaginary Part for P(z, 8)Real Part for P(z, 8)Magnitudes of Q(z, 8)Imaginary Part of Q(z, 8)Real Part of Q(z, 8)Graph of P(cos x, 8) Real Valued FunctionGraph of Q(cos x, 8) Real Valued FunctionGraph of P(x, 8) Real Valued FunctionGraph of Q(x, 8) Real Valued FunctionP(cos x, 30)Q(cos x, 30)P(x, 30)Q(x, 30)
The 8-puzzle is a child’s tiled toy. The toy consists of 8 numbered tiles and a blank space. The object of the game is to get the tiles in the order 1 to 8 going from the top left hand corner for the number 1 tile around the perimeter clockwise and finish with the space in the center of the 3 x 3 board.
A* search is a complete and optimal informed or heuristic search algorithm. A good source for information on uniformed and informed search procedures is the tome “Artificial Intelligence A Modern Approach First and/or Second Edition” by Stuart Russell and Peter Norvig. The second edition has more info on the 8-puzzle and the 15-puzzle. Iterative deepening A* search is also a complete and optimal search algorithm. Below is an instance of the 8-puzzle that requires 10 steps to reach the goal state. I use a different goal state than Russell and Norvig in the second edition of their textbook.
Initial State of a 8-Puzzle InstanceGoal State of a 8-Puzzle InstanceInitial State of a 15-Puzzle InstanceGoal State of a 15-Puzzle Instance
I developed an application in 2015 that uses 5 search algorithms to solve instances of the 15-puzzle.
Best First Search AlgorithmBreadth First Search AlgorithmFailure of Depth First AlgorithmFailure of IDA* SearchFailure of the A* SearchBest First SearchFailure of Breadth First SearchFailure of Depth First SearchIDA* Search SolutionA* Search Solution
The first order perturbation calculation for the helium atom ground state is treated in detail in the textbook “Quantum Mechanics Third Edition” by Leonard I. Schiff pages 257 to 259. I offer a numerical algorithm for computing the electron-electron repulsion interaction which is analytically determined by Schiff and other scientists. Next is the graphical user interface for the application and its output.
Application Graphical User Interface
The Ep text box is the ground state energy as found by a first order perturbation computation. The Ee text box is the experimental ground state energy. The IA text box is the analytic electron-electron repulsion interaction determined by Schiff and other quantum mechanics researchers. The IC text box is my numerical contribution. All the energies are in electron volts.
The application source code are the next items in this blog.
In my current return to my youthful dual interests in quantum chemistry and quantum mechanics that occupied much of my time in the 1960s, 1970s and 1980s, I am now using my knowledge of experimental numerical analysis. My interest in computer science and numerical analysis began in the summer of 1976 while I was a chemistry student at my local college namely LaGrange College in LaGrange, Georgia. As a child and teenager I was very interested in several disciplines of physics: classical mechanics, quantum mechanics, and the theories of special and general relativity. Later I added to my knowledge toolkit some tidbits of statistical mechanics and statistical thermodynamics.
This blog entry will explore the wonderful world of the hydrogenic atom which used to known by the moniker, hydrogen-like atom. The most well known isotope of hydrogen has one electron and one proton and its atomic number is 1 and it is sometimes denoted by the letter and numeral Z = 1. Of course, there are multiple other isotopes of hydrogen including deuterium (one proton and one neutron) and tritium (one proton and two neutrons). Hydrogen is the only atom whose wave functions both non-relativistic (see Erwin Schrödinger) and relativistic (view Paul Adrian Maurice Dirac) have analytic close formed solutions. Hydrogen is the most abundant chemical element on Earth and in the universe. The stars initially use a hydrogen plasma as a nuclear fuel to create more massive atomic ions and release massive amounts of nuclear fusion energy.
Way back in the 1920s Erwin Schrödinger decided to apply his work in wave hydrology to the newly found branch of physics known as quantum theory and quantum mechanics. From his work the branch of quantum mechanics known as wave quantum mechanics evolved. This branch was as important as another competing theory of quantum mechanics known as matrix quantum mechanics that was being concurrently developed by Werner Heisenberg. The key process in the derivation of a Schrödinger equation for any time independent scenario is to apply the first quantization rules to a valid classical Hamiltonian. The classical Hamiltonian is the total energy of a system and is the sum of the kinetic energy and the potential energy. The classical Hamiltonian for the hydrogen-like atom is shown in equation (1).
Equation (1), Many Sources
The first quantization rule is to apply the conversion from a classical momentum vector to a momentum quantum mechanical operator using the equation (2).
Equation (2), Several Sources
The lower case m is the mass of the electron and the upper case M is the mass of the atomic nucleus which is the Z times the proton mass plus the number of neutrons times the neutron mass. The Greek letter mu is the reduced mass of the hydrogen-like system. The italic i is the imaginary unit that is the square root of the number -1. The transcendental number pi is represented by the Greek letter pi and has the truncated real number value of 3.1415926535897932384626433832795. Schrödinger plugged Equation (2) into Equation (1) and found a three-dimensional Cartesian coordinate second order partial differential equation (3) that used the operator discovered by the mathematician Laplace.
Equation (3), Merzbacher, Messiah, Schiff Et. Al.Equation (4), Several Sources
In equation (4) the first partial differential operator is the Laplace operator which is the vector inner product of the three-dimensional Cartesian gradient operator from vector analysis. The scalar r in equation (4) is the Euclidean distance from the electron to the nucleus. The Greek letter psi (“pitchfork”) in equation (3) is the illustrious and elusive wave function.
The first thing that struck Schrödinger was that the equation (3) that he derived by much thought was unfortunately not a separable partial differential equation in three-dimensional Cartesian coordinates, however, he next applied a coordinate coordinate transformation from three-dimensional Cartesian coordinates to three dimensional spherical polar equations specified by the equations in the following PDF with some derivations.
The wave function for the hydrogen-like atom is dependent on the associated Laguerre polynomials and the spherical harmonics that dependent upon the associated Legendre functions.
using System;
namespace SteadyStateTempCylinder
{
public class PotPoint : IComparable
{
private double x, y, u;
public double X
{
get
{
return x;
}
set
{
x = value;
}
}
public double Y
{
get
{
return y;
}
set
{
y = value;
}
}
public double U
{
get
{
return u;
}
set
{
u = value;
}
}
public PotPoint(double x, double y, double u)
{
this.x = x;
this.y = y;
this.u = u;
}
public int CompareTo(object obj)
{
if (obj == null)
return 1;
PotPoint pp = (PotPoint)obj;
if (u > pp.u)
return 1;
else if (u == pp.u)
return 0;
else
return -1;
}
}
}
Sometimes in my group therapy, we play a game of taking an anagram and unscrambling the puzzle and determining all the words that can be created from the unscrambled anagram letters. Suppose we have the scrambled word “cimdteos“ then the following list is created using my new application.
1 demotics 2 domestic 3 ed 4 em 5 me 6 mo 7 om 8 to 9 ti 10 it 11 cs 12 med 13 mot 14 tom 15 tic 16 cit 17 sic 18 sci 19 demo 20 dome 21 mode 22 mote 23 tome 24 omit 25 tics 26 cits 27 stoic 28 sitcom 29 demotic 30 do 31 es 32 st 33 ts 34 mod 35 mes 36 ems 37 est 38 set 39 sit 40 tis 41 its 42 some 43 mets 44 stem 45 ties 46 site 47 domes 48 demos 49 modes 50 motes 51 tomes 52 smote 53 mites 54 emits 55 smite 56 times 57 items 58 cites 59 modest
An anagram is a scrambled or jumbled word. It is a permutation of the letters in a word. There are six permutations of a three letter word such as “the” and are “the”, “teh”, “hte”, “het”, “eth”, and “eht”. The number of permutations of a word consisting of n letters is n!, for example, 4! = 4 * 3 * 2 * 1 = 4 * 3! = 24, 5! = 5 * 4! = 120, etc. I wrote a program to brute force solve anagrams using an English language dictionary consisting of 152,512 words, a hash table, and a permutation generator. The hash table is generated from the English language dictionary by the formula first character integer ASCII value squared + the second character integer ASCII value . The base hash table entry for the word “an” is 65 * 65 + 78 = 4,303. There will be collisions or words with the same hash code. In this case there is a list of words for each hash code value. The application can solve 12 character anagrams in less than one hour on my computer where 12! = 479,001,600. Some anagrams can represent more than one word so a list of potential anagrams is created. Some example executions of the C# application are illustrated below.
I very recently created a multiple precision signed integer package in C++ using the standard library and a base of 10. I then implemented two integer factoring algorithms trial division and Pollard’s Rho method. Trial division uses all the prime numbers <= 10000 and there are 1229 such primes. Due to the choice of language and the exceedingly small base the resulting application is awfully slow when compared to a similar C# application. The multiple precision signed integer package is largely based on translation of the Pascal source code found in “Prime Numbers and Computer Methods for Factorization” by Hans Riesel. The test number is 2 ^ 72 – 1 which is a Mersenne composite integer. The output large integers start with the number of base 10 digits in the number. For comparison I have included the output from my C# Big Integer factorization program as a screen shot.
Menu
0 Exit Application
1 Test of Package
2 Trial Division
3 Pollard Rho
2
n = 4722366482869645213695
Duration (min:sec.mil) = 00:08.784
n is composite, factors:
3 ^ 3 factor has 1 digits
5 factor has 1 digits
7 factor has 1 digits
13 factor has 2 digits
17 factor has 2 digits
19 factor has 2 digits
37 factor has 2 digits
73 factor has 2 digits
109 factor has 3 digits
241 factor has 3 digits
433 factor has 3 digits
Large prime 5 3 8 7 3 7
Menu
0 Exit Application
1 Test of Package
2 Trial Division
3 Pollard Rho
3
n = 4722366482869645213695
n is composite, factors:
2 2 1
1 3
1 3
4 3 5 1 5
2 1 3
4 1 2 4 1
3 2 4 1
3 1 0 9
3 4 3 3
5 3 8 7 3 7
1 3
1 3
1 3
1 5
1 7
2 1 3
2 1 7
2 1 9
2 3 7
2 7 3
3 1 0 9
3 2 4 1
3 4 3 3
5 3 8 7 3 7
Duration (min:sec.mil) = 00:02.197