No BSD License
-
...
sampler - function to sample density and velocities
-
...
sampler - function to sample density and velocities
-
FNewt(x,a)
Function used by the N-variable Newton's method
-
NaiveGE(a,b)
Forward elimination
-
bess(m_max,x)
Function to calculate of Bessel function
-
bess(m_max,x)
Function to calculate of Bessel function
-
colide(v,cell_n,...
colide - Function to process collisions in cells
-
colide(v,cell_n,...
colide - Function to process collisions in cells
-
fnewt(x,a)
Function used by the N-variable Newton's method
-
fund(x,n)
Return function value or derivative
-
fund(x,n)
Return function value or derivative
-
gravrk(s,time,GM)
The time is not used in this version
-
gravrk(s,time,GM)
The time is not used in this version
-
intrpf(xi,x,y)
Function to interpolate between data points
-
intrpf(xi,x,y)
Function to interpolate between data points
-
legndr(n,x)
Legendre polynomials
-
legndr(n,x)
Legendre polynomials
-
linreg(x,y,sigma)
Function to perform linear regression (fit a line)
-
linreg(x,y,sigma)
Function to perform linear regression (fit a line)
-
lorzrk(a,time,param)
Function to define the Lorenz model equations
-
lorzrk(a,time,param)
Function to define the Lorenz model equations
-
mover(x,v,npart, ...
mover - Function to move particles by free flight
-
mover(x,v,npart, ...
mover - Function to move particles by free flight
-
my_f(x,param)
Error function integrand
-
my_f(x,param)
Error function integrand
-
naivege(a,b)
x=naivege(a,b) performs naive (no pivoting) Gaussian elimination
-
pollsf(x, y, sigma, M)
Function to fit a polynomial to data
-
pollsf(x, y, sigma, M)
Function to fit a polynomial to data
-
rk4(x,t,tau,derivsRK,param)
Runge-Kutta integrator (4th order)
-
rk4(x,t,tau,derivsRK,param)
Runge-Kutta integrator (4th order)
-
rkA(x,t,tau,err,derivsRK,para...
Adaptive Runge-Kutta routine
-
rka(x,t,tau,err,derivsRK,para...
Adaptive Runge-Kutta routine
-
rombf(a,b,N,func,param)
Function to compute integrals by Romberg algorithm
-
rombf(a,b,N,func,param)
Function to compute integrals by Romberg algorithm
-
sorter(x,npart,ncell,L)
sorter - Function to sort particles into cells
-
sorter(x,npart,ncell,L)
sorter - Function to sort particles into cells
-
spinview(nviews,wait)
spinview - Routine to rotate a 3D plot
-
sprrk(a,time,param)
Function to compute 3 mass-spring system
-
sprrk(a,time,param)
Function to compute 3 mass-spring system
-
tri_GE(a,b)
Function to solve b = a*x by Gaussian elimination where
-
tri_GE(a,b)
Function to solve b = a*x by Gaussian elimination where
-
yt=sft(y)
Slow Fourier transform function
-
yt=sft(y)
Slow Fourier transform function
-
zeroj(m_order,n_zero)
Function which returns the zeros of the Bessel function J(x)
-
zeroj(m_order,n_zero)
Function which returns the zeros of the Bessel function J(x)
-
aftcs.m
-
aftcs.m
-
aftcs_p.m
-
balle.m
-
balle.m
-
balle_p.m
-
contents.m
-
contents.m
-
contents.m
-
contents.m
-
deriv.m
-
deriv.m
-
deriv_p.m
-
dftcs.m
-
dftcs.m
-
dftcs_p.m
-
dsmceq.m
-
dsmceq.m
-
dsmceq_p.m
-
dsmcne.m
-
dsmcne.m
-
dsmcne_p.m
-
factn.m
-
factn.m
-
facts.m
-
facts.m
-
fftpoi.m
-
fftpoi.m
-
fftpoi_p.m
-
galrkn.m
-
galrkn.m
-
galrkn_p.m
-
interp.m
-
interp.m
-
interp_p.m
-
jacobi.m
-
jacobi.m
-
jacobi_p.m
-
lorenz.m
-
lorenz.m
-
lorenz_p.m
-
lsftest.m
-
lsftest.m
-
lsftst_p.m
-
newtn.m
-
newtn.m
-
newtn_p.m
-
orbe.m
-
orbe.m
-
orbe_p.m
-
orbec.m
-
orbec.m
-
orbrk.m
-
orbrk.m
-
orbrka.m
-
orbrka.m
-
orthog.m
-
orthog.m
-
pendul.m
-
pendul.m
-
pendul_p.m
-
pendulv.m
-
pendulv.m
-
rndoff.m
-
rndoff.m
-
rndoff_p.m
-
schro.m
-
schro.m
-
schro_p.m
-
schrot.m
-
schrot.m
-
sftdem_p.m
-
sftdemo.m
-
sftdemo.m
-
sprfft.m
-
sprfft.m
-
sprfft_p.m
-
traffic.m
-
traffic.m
-
trafic_p.m
-
View all files
|
|
| contents.m |
% Numerical Methods for Physics (FORTRAN).
% Version 1.0a 1-Sept-93
% Copyright (c) 1993 by Alejandro Garcia.
%
% Chapter 1 - Preliminaries.
% orthog - Orthogonality test of two vectors.
% interp - Interpolation by Lagrange polynomial (driver).
% intrpf - Interpolation by Lagrange polynomial (function).
% interp_p - MATLAB plotting routine for interp.
% rndoff - Round-off demonstration.
% rndoff_p - MATLAB plotting routine for rndoff.
% factn - Naive factorial routine.
% facts - Stirling's approximation factorial routine.
% deriv - Right and centered derivative demonstration.
% fund - Function used by deriv.
% deriv_p - MATLAB plotting routine for deriv.
%
% Chapter 2 - Ordinary Differential Equations I.
% balle - Trajectory of baseball (Euler algorithm).
% balle_p - MATLAB plotting routine for balle.
% pendul - Simple pendulum (Euler algorithm).
% pendul_p - MATLAB plotting routine for pendul.
%
% Chapter 3 - Ordinary Differential Equations II.
% orbe - Orbit of comet (Euler & Runge-Kutta algorithms).
% orbe_p - MATLAB plotting routine for orbe.
% rk4 - Fourth order Runge-Kutta function.
% gravrk - Equations of motion for comet.
% rka - Adaptive Runge-Kutta function.
% lorenz - Lorenz model.
% lorzrk - Lorenz model equations.
% lorenz_p - MATLAB plotting routine for lorenz.
%
% Chapter 4 - Solving Systems of Equations.
% naivege - Naive Gaussian elimination routine.
% ge - Gaussian elimination routine.
% inv - Matrix inverse routine.
% newtn - N-variable Newton's method routine.
% fnewt - Equations solved by newtn.
% newtn_p - MATLAB plotting routine for newtn_p.
%
% Chapter 5 - Analysis of Data.
% lsftest - Least squares fit routine.
% lsftst_p - MATLAB plotting routine for lsftest.
% linreg - Linear regression routine.
% pollsf - Polynomial least squares fit routine.
% sftdemo - Slow Fourier transform demonstration.
% sftdem_p - MATLAB plotting routine for sftdemo.
% sft - Slow Fourier transform routine.
% fft - Fast Fourier transform routine.
% ifft - Inverse Fast Fourier transform routine.
% sprfft - Normal mode oscillations in spring-mass system.
% sprfft_p - MATLAB plotting routine for sprfft.
% sprrk - Equations of motion for spring-mass system.
% barrow - Carbon dioxide data from Barrow, Alaska.
% mauna - Carbon dioxide data from Mauna Loa, Hawaii.
%
% Chapter 6 - Partial Differential Equations I.
% dftcs - Diffusion equation routine (FTCS method).
% dftcs_p - MATLAB plotting routine for dftcs.
% aftcs - Advection equation routine (FTCS method).
% aftcs_p - MATLAB plotting routine for aftcs.
% traffic - Traffic at stop light.
% trafic_p - MATLAB plotting routine for traffic.
%
% Chapter 7 - Partial Differential Equations II.
% jacobi - Laplace equation routine (Jacobi method).
% jacobi_p - MATLAB plotting routine for jacobi.
% galrkn - Poisson equation routine (Galerkin method).
% galrkn_p - MATLAB plotting routine for galrkn.
% fftpoi - Poisson equation routine (MFT method).
% fftpoi_p - MATLAB plotting routine for fftpoi.
% fft2 - Two dimensional FFT routine.
% ifft2 - Two dimensional inverse FFT routine.
%
% Chapter 8 - Partial Differential Equations III.
% schro - Schrodinger equation routine (Crank-Nicolson).
% cinv - Complex matrix inverse routine.
% schrot - Schrodinger equation routine (Tridiagonal).
% schro_p - MATLAB plotting routine for schro and schrot.
% tri_ge - Tridiagonal Gaussian elimination routine.
%
% Chapter 9 - Special Functions and Quadrature.
% legndr - Legendre polynomial function.
% bess - Bessel function.
% zeroj - Zeros of Bessel function.
% rombf - Romberg quadrature function.
% my_f - Function integrated by rombf.
%
% Chapter 10 - Stochastic Methods.
% dsmceq - DSMC routine for relaxation to equilibrium.
% dsmceq_p - MATLAB plotting routine for dsmceq.
% sorter - Sorting routine used by dsmceq and dsmcne.
% colide - DSMC collision function.
% dsmcne - DSMC routine for nonequilibrium Couette flow.
% dsmcne_p - MATLAB plotting routine for dsmcne.
% mover - DSMC particle motion routine.
% sampler - Sampling routine used by dsmcne.
% rand - Uniform deviate random number generator.
% randn - Normal (Gaussian) random number generator.
|
|
Contact us at files@mathworks.com