<< Chapter < Page Chapter >> Page >

In an effort to improve accuracy, Heun's method was implemented instead of forward Euler. In Heun's method, the formula for the numerical approximation to the solution of [link] is

a n + 1 = a n + h 2 f ( a n , b n ) + f a n + h f ( a n , b n ) , b n + 1 .

where h = b n + 1 - b n [link] . Additionally, RK4, the fourth order Runge-Kutta method, was implemented through "ode45" in MATLAB.However, these methods did not produce results that were much better than the simpler method of forward Euler (and in some cases, took much more time), so we left forward Euler in our code and reported those results in this paper.

Spectral discretization

To numerically compute the eigenvalues for the various operators resulting from the various q and ρ functions discussed in this paper, there are several techniques. One technique to approximate a second derivative is to use a uniform grid, 0 = x 0 < x 1 < . . . < x n = 1 with x j + 1 - x j = h for j = 0 , 1 , . . . , n - 1 , and a finite difference which leads to

u ' ' ( x j ) u ( x j + 1 ) - 2 u ( x j ) + u ( x j - 1 ) h 2

for j = 1 , . . . , n - 1 which is O ( h 2 ) accurate. Another technique is spectral discretization. In this technique, instead of a uniform grid, Chebyshev points are used, which are given by

x j = 1 2 1 - cos j π n

for j = 0 , 1 , . . . , n . These points are clustered near the endpoints of the interval. These Chebyshev points are used to form a polynomial, p n ( x ) , which is an interpolant of u ( x ) so that u ( x j ) p n ' ' ( x j ) . The MATLAB program we used to create the matrix that approximates the differential operator and the Chebyshev grid for x is based on "cheb.m" in [link] .

The advantage of spectral discretization over the finite difference technique is that with the same number of points in the grid, spectral discretization produces results that are much more accurate. Or, it is possible to achieve the same accuracy as finite difference with fewer points using spectral discretization. In [link] , spectral discretization was used with N = 256 . Even though there are infinitely many eigenvalues, this technique's results only approximate the first N eigenvalues. Since for this problem, it is known exactly what the eigenvalues should be, the error was plotted in [link] , and about the first 100 eigenvalues are accurate to 10 - 7 or better. To compare, using finite difference with N = 256 and a uniform grid, h = 1 / 256 and O ( h 2 ) accuracy means h 2 1 . 5 × 10 - 5 . Spectral discretization produces more digits of accuracy than finite difference with the same number of grid points.

Summary

In this paper, we started by describing Liouville's transformation to change the mass density of the wave equation to the potential of the Sturm-Liouville equation [link] . However, our intention was to study a specific q from [link] , so it was necessary to reverse that transformation in order to arrive at the corresponding mass density, ρ . In this paper we described our numerical methods to perform this reverse transform, and results are described for the specific q from [link] including the computed ρ , eigenvalues, and eigenfunctions for certain values of μ 1 and chosen initial conditions. Since we know what the eigenvalues are supposed to be for this q , an analysis of the error in computing the eigenvalues is included. For comparison, similar calculations were done for other q or ρ in closed form.

Acknowledgments

We would like to acknowledge the patience and guidance of Dr. Mark Embree and Dr. Steven Cox of Rice University. Many thanks are owed to Jeffrey Hokanson and our predecessors in the Physics of Strings PFUG, whose work made ours possible. This paper and the research herein conducted were made possible by grant funding from the National Science Foundation through Rice University's VIGRE program.

Appendix

The codes used in this project are accessible through the featured link.

Questions & Answers

what is microbiology
Agebe Reply
What is a cell
Odelana Reply
what is cell
Mohammed
how does Neisseria cause meningitis
Nyibol Reply
what is microbiologist
Muhammad Reply
what is errata
Muhammad
is the branch of biology that deals with the study of microorganisms.
Ntefuni Reply
What is microbiology
Mercy Reply
studies of microbes
Louisiaste
when we takee the specimen which lumbar,spin,
Ziyad Reply
How bacteria create energy to survive?
Muhamad Reply
Bacteria doesn't produce energy they are dependent upon their substrate in case of lack of nutrients they are able to make spores which helps them to sustain in harsh environments
_Adnan
But not all bacteria make spores, l mean Eukaryotic cells have Mitochondria which acts as powerhouse for them, since bacteria don't have it, what is the substitution for it?
Muhamad
they make spores
Louisiaste
what is sporadic nd endemic, epidemic
Aminu Reply
the significance of food webs for disease transmission
Abreham
food webs brings about an infection as an individual depends on number of diseased foods or carriers dully.
Mark
explain assimilatory nitrate reduction
Esinniobiwa Reply
Assimilatory nitrate reduction is a process that occurs in some microorganisms, such as bacteria and archaea, in which nitrate (NO3-) is reduced to nitrite (NO2-), and then further reduced to ammonia (NH3).
Elkana
This process is called assimilatory nitrate reduction because the nitrogen that is produced is incorporated in the cells of microorganisms where it can be used in the synthesis of amino acids and other nitrogen products
Elkana
Examples of thermophilic organisms
Shu Reply
Give Examples of thermophilic organisms
Shu
advantages of normal Flora to the host
Micheal Reply
Prevent foreign microbes to the host
Abubakar
they provide healthier benefits to their hosts
ayesha
They are friends to host only when Host immune system is strong and become enemies when the host immune system is weakened . very bad relationship!
Mark
what is cell
faisal Reply
cell is the smallest unit of life
Fauziya
cell is the smallest unit of life
Akanni
ok
Innocent
cell is the structural and functional unit of life
Hasan
is the fundamental units of Life
Musa
what are emergency diseases
Micheal Reply
There are nothing like emergency disease but there are some common medical emergency which can occur simultaneously like Bleeding,heart attack,Breathing difficulties,severe pain heart stock.Hope you will get my point .Have a nice day ❣️
_Adnan
define infection ,prevention and control
Innocent
I think infection prevention and control is the avoidance of all things we do that gives out break of infections and promotion of health practices that promote life
Lubega
Heyy Lubega hussein where are u from?
_Adnan
en français
Adama
which site have a normal flora
ESTHER Reply
Many sites of the body have it Skin Nasal cavity Oral cavity Gastro intestinal tract
Safaa
skin
Asiina
skin,Oral,Nasal,GIt
Sadik
How can Commensal can Bacteria change into pathogen?
Sadik
How can Commensal Bacteria change into pathogen?
Sadik
all
Tesfaye
by fussion
Asiina
what are the advantages of normal Flora to the host
Micheal
what are the ways of control and prevention of nosocomial infection in the hospital
Micheal
Got questions? Join the online conversation and get instant answers!
Jobilize.com Reply

Get Jobilize Job Search Mobile App in your pocket Now!

Get it on Google Play Download on the App Store Now




Source:  OpenStax, The art of the pfug. OpenStax CNX. Jun 05, 2013 Download for free at http://cnx.org/content/col10523/1.34
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'The art of the pfug' conversation and receive update notifications?

Ask